1
I was developing an application in Chrome and needed to use the Instagram api to display some photos but when I went to do the tests the following error appeared:
What I found strange because the application has special permission on the site:
It’s been a while since I’ve been living with this error, I’ve searched on Google, related questions and I haven’t figured out how to make a request ajax an external site in a Hosted app in Chrome.
Curiosity: This same request works in a normal browser extension but in an app this error happens.
Help me!
Can put a jsfiddle in the air simulating the problem? For sure it is a problem of CORS. I think you’re trying to run a local file in Chrome (without publishing to a lifetime App Server), you probably need to
--allow-file-access-from-files
.– Anthony Accioly
In jsfiddle will work normally, only in Chrome this error.
– Iago Bruno
Tries to pass the
--allow-file-access-from-files
then. Pretty sure that’s the problem.– Anthony Accioly
But if I’m going to publish this app, everyone’s going to have to do this? '-'
– Iago Bruno
When you publish the App it will not make local files ajax... Right?
– Anthony Accioly
external files, in the Instagram api..
– Iago Bruno