mercredi 22 avril 2015

How can I Allow my Chrome App to access external Api

I'm fresh out of college and trying new things. I'm attempting to make a chrome app and want to use:

<script src="http://ift.tt/OJL5Z7"></script>

When I try to run it I get this error:

Refused to load the script 'http://ift.tt/OJL5Z7' because it violates the following Content Security Policy directive: "default-src 'self' chrome-extension-resource:". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

I read up on CSP and the like but I cant seem to get it to work. Any help would be super amazing!

Aucun commentaire:

Enregistrer un commentaire