New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to set withCredentials = false for ajax requests #2513
Comments
So I guess this would take the form of an ajax option, something like |
the object returned by getHost will have auth set to either a string or false, we can check that |
This is not limited to CouchDB configuration. For instance I have a setup with some auth proxy. How about renaming the issue to something like 'make |
I arrived at this solution to make auth work for all my use cases (Firefox OS app, Desktop packaged app, served as hosted app via python -m SimpleHTTPServer Using a customized xhr field I was able to debug this. I leave the if statement in for historical background:
|
woot, efe5dd8 |
Nice, thanks! |
In
ajax-browser.js
we're settingwithCredentials
to be true every time. We need some way to programmatically set this, although TBH I have no idea how.Without this feature, we won't be able to set up the npm-browser to replicate from skimdb.npmjs.com, since credentials will be set to false on that server.
The text was updated successfully, but these errors were encountered: