I am developing a Javascript library to FluidDB HTTP API.
Since FluidDB API does not support JSONP I am forced to use AJAX and hence to develop a firefox extension to workaround AJAX's same origin policy.
My solution is to include a HTML file inside the extension. That HTML file displays a simple form where the user could enter the username, password and the other GET/POST data that forms a request.
I load the HTML file using the chrome URL.
When the user enters his username and password I want to store it somewhere persistently and spare him the trouble of having to enter it everytime. I tried creating cookies but it did not work as the webpage is not a valid domain.
Are there any alternatives?