Apollo-client: Credential problem

Created on 20 Mar 2018  路  5Comments  路  Source: apollographql/apollo-client

Hello, I'm having trouble with the credentials option. I'm running Tutorial, tried setting it up to 'include', but when I run it, it's always set to 'same-origin'. Am I doing something wrong?

Error

Most helpful comment

Same issue here. This effectively renders Apollo Boost unusable if you're using cookie-based authentication with a server on a different sub-domain (e.g., www.example.com hitting api.example.com).

All 5 comments

Same issue here. This effectively renders Apollo Boost unusable if you're using cookie-based authentication with a server on a different sub-domain (e.g., www.example.com hitting api.example.com).

I'm seeing the same problem with everything in fetchOptions (the headers I pass are ignored and some default value is used).

Looks like the problem could be this?
https://github.com/apollographql/apollo-client/blob/master/packages/apollo-boost/src/index.ts#L76

credentials: 'same-origin' is not being overridden by the fetchOptions object.

Was this page helpful?
0 / 5 - 0 ratings