Skip to content
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

"Image" component with "NSURLErrorDomain Code=403" #3

Open
yanni4night opened this issue Nov 27, 2016 · 0 comments
Open

"Image" component with "NSURLErrorDomain Code=403" #3

yanni4night opened this issue Nov 27, 2016 · 0 comments
Labels
Milestone

Comments

@yanni4night
Copy link
Member

yanni4night commented Nov 27, 2016

This is the same issue as SDWebImage/SDWebImage#1228.

By default, RN fetch images with a weird user-agent string, which may lead to 403 response from server.

There is an implicit headers attribute for source of Image component:

<Image source={{uri: 'https://...', headers: {'User-Agent': '...'}}}/>

Set User-Agent to avoid this error.


iOS may need https protocol always.

BTW, DO NOT insert any newline into UA string

@yanni4night yanni4night added this to the 0.35.0 milestone Nov 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant