-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 source URL properties containing localhost
do not work
#3496
Comments
@adamterlson , Can you once try opening the same image in the simulators safari . |
The image loads in Safari. |
Sorry, I didn't specify the width and height in my example to just focus on the bit that changed. That Allow HTTP Services did it! Why is that setting required to access an image hosted at |
Please refer to this https://forums.developer.apple.com/thread/6205 . |
Sorry, can you link to the specific post that's relevant or summarize? It's a bit dense for me to be honest and reading through it didn't find any explanation for this behavior. Otherwise, no problem, thanks for the help! |
@facebook-github-bot answered |
Closing this issue as @browniefed says the question asked has been answered. Please help us by asking questions on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. |
Experienced behavior on iOS.
I'm serving an image locally from a web server, bound identically under two hostnames:
http://localhost:3000/myImage.png
andhttp://foobar:3000/myImage.png
Works as expected:
<Image source={{uri: 'http://foobar:3000/myImage.png'}} />
However, the following does not work, and no request hits the server hosted server at all, so may not be making the request at all or it may be mangled/routed somewhere unexpected.
<Image source={{uri: 'http://localhost:3000/myImage.png'}} />
The text was updated successfully, but these errors were encountered: