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.
Made a PR for this here: https://github.com/apollographql/apollo-client/pull/3464
Addressed in https://github.com/apollographql/apollo-client/pull/3098. Thanks!
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).