Skip to content Skip to sidebar Skip to footer

Xmlhttprequest Not Working In Google Chrome Packaged Web App

I'm writing a packaged Chrome Web App and trying to parse external XML. It works when I download the XML file to my server, but does not work when I change the XML file to the loc

Solution 1:

Suffice a wildcard after /. Otherwise, you're allowing your extension to only request pages at the root.

"permissions":["http://www.w3schools.com/*",

In your case, you're requesting only one URL. It might be even better to restrict the pattern even more:

"permissions":["http://www.w3schools.com/xml/note.xml",

Post a Comment for "Xmlhttprequest Not Working In Google Chrome Packaged Web App"