-
-
Notifications
You must be signed in to change notification settings - Fork 6k
-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSURLErrorDomain Code=403 #1228
Comments
because is need User-Agent in SDWebImageDownloader.m method init replace by
|
Indeed, it seems this webserver requires a User-Agent before giving access to the image. Before downloading the image, do: |
Excuse me, the solution works very well, but is there any plan to fix it in the branch? Thanks. |
Same problem with this sample url: https://static.pexels.com/photos/1475/food-vegetables-italian-restaurant-large.jpg. Any helps? |
@AndreaVitale Have you tried qingmu213's solution above? |
Yep, I tried setting the userAgent. It was loaded only for the first, second time. After that the server always return 403. |
When using SDWebImage to download an jpg image from web, I got error below:
NSURLErrorDomain Code=403 "The operation couldn’t be completed
this is image url:
http://img5.imgtn.bdimg.com/it/u=3017210771,879699792&fm=11&gp=0.jpg
It shows ok in browser.
The text was updated successfully, but these errors were encountered: