Is it possible to call the post-method on a mongodb (mongolab.com server) directly from a chrome extension script?
I need this because I have a separate server-script I don't want users to get access to. I'd like to just post and get from this server directly from the extension.
I did as recommended by @mnemosyn, and still have some problems. My extension won't post to my DB. Code snip below being called from background-script:
var xhr = new XMLHttpRequest();
xhr.open("POST", "MY-API-URL", true);
xhr.setRequestHeader("Content-Type", "application/json");
xhr.send('{"something": "inJsonHere"}');