1、403 Forbidden
403通常表示没有权限访问某个资源,当资源来源开启了防盗链后,只有白名单下的来源才能访问。
2、解决方案
使用图片缓存服务:
1 2 3 4 5 6 7 8 9 10
| i0/1/2/3.wp.com cdn.cdnjson.com https://image.baidu.com/search/down?url=
使用方式: 比如请求新浪图片https://tvax3.sinaimg.cn/large/a15b4afegy1fmvj9449p8j21hc0u0wqg.jpg 可以直接使用: https://i3.wp.com/tvax3.sinaimg.cn/large/a15b4afegy1fmvj9449p8j21hc0u0wqg.jpg https://cdn.cdnjson.com/tvax3.sinaimg.cn/large/a15b4afegy1fmvj9449p8j21hc0u0wqg.jpg https://image.baidu.com/search/down?url=https://tvax3.sinaimg.cn/large/a15b4afegy1fmvj9449p8j21hc0u0wqg.jpg
|