Having problems with the code in the attached script. For some reason, xhr fails to POST to the specified URL (
https://127.0.0.1:3000/mobile/sessions). In the readystate handler I can see its state is set to 4 and status is 0. No error text, no response text.
Network tab in chrome dev tools shows that the requests are canceled.
In my mainfest.json file, I've tried to set permissions for <all_urls>, https://*/*,
https://localhost/* and
https://127.0.0.1/*, to no avail. However, if I make a request to any other remote server (e.g. my staging application hosted on Heroku), it goes fine.
The script is linked to from a popup page, if that makes any difference.
Using the latest Chrome to date (
28.0.1500.71).
Appreciate any help.
Thanks.