Comments (4)
How does couch handle setting both of those options and what is the correct
set up?
On Aug 23, 2014 2:21 PM, "Alexander Shorin" [email protected]
wrote:
From CORS specification http://www.w3.org/TR/cors/#resource-requests:
If the resource supports credentials add a single
Access-Control-Allow-Origin header, with the value of the Origin header as
value, and add a single Access-Control-Allow-Credentials header with the
case-sensitive string "true" as value.Otherwise, add a single Access-Control-Allow-Origin header, with either
the value of the Origin header or the string "*" as value.The string "*" cannot be used for a resource that supports credentials.
This is also noted in CouchDB docs
http://docs.couchdb.org/en/latest/config/http.html#cors/origins.—
Reply to this email directly or view it on GitHub
#2.
from add-cors-to-couchdb.
@calvinmetcalf very easy: in this case CouchDB implicitly sets credentials=false without raising an error or logging that fact.
from add-cors-to-couchdb.
from what you're saying it would sound like setting credentials=true does nothing but #4 seems to imply changing it does have an effect
from add-cors-to-couchdb.
Yes, it does nothing, but it also doesn't doing what you're expected. That's why it's invalid (;
from add-cors-to-couchdb.
Related Issues (14)
- will this work on cloudant? HOT 2
- Installing to irsicouch.com HOT 1
- OPTIONS, TRACE and cookie? HOT 1
- Simple steps how to use (Not an issue but a request) HOT 3
- Ran into trouble with CouchDB 2.0 preview HOT 5
- Avoid native promises to support node 0.10 HOT 8
- Error 500 when running HOT 1
- How to add username and password? HOT 4
- Error accessing cloudant db URL from node HOT 1
- SignUP Error
- How to execute the command on windows? HOT 1
- Doesn't work on Ubuntu HOT 6
- Readme.md is missing "authorization" in headers when describing what the script does HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from add-cors-to-couchdb.