Requesting ajax in a Chrome application

1

I was developing an application in Chrome and needed to use Instagram's api to display some photos but when I went to do the tests the following error appeared:

WhatIfoundstrangebecausetheapplicationhasspecialpermissiononthesite:

I've been living with this error for a while now, I've looked in Google for related issues and I have not figured out how to make an ajax request from an external site in a Hosted app in Chrome.

>

Curiosity: This same request works in a normal extension in the browser but in an app this error occurs.

Help me!

    
asked by anonymous 11.08.2014 / 18:59

1 answer

1

A Chrome App is more secure than an extension. Google is improving the Chrome Apps SDK, but the last (and only) time I tried to make an App to test was not allowed to access external URLs (CORS). The documentation still seems to say that.

    
11.08.2014 / 21:00