GithubHelp home page GithubHelp logo

Comments (4)

calvinmetcalf avatar calvinmetcalf commented on August 24, 2024

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.

kxepal avatar kxepal commented on August 24, 2024

@calvinmetcalf very easy: in this case CouchDB implicitly sets credentials=false without raising an error or logging that fact.

from add-cors-to-couchdb.

calvinmetcalf avatar calvinmetcalf commented on August 24, 2024

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.

kxepal avatar kxepal commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.