Skip to content

Add an alternative Apollo client that can pass cookies manually #16

@rglover

Description

@rglover

When you're using getServerSideProps, in order to authenticate a GraphQL request, cookies have to be available. By default the cookies are present but not relayed to Apollo. This can be done by setting the request headers manually, but it involves a good amount of boilerplate.

Need to add a wrapper function that streamlines this so you can choose to either send a normal request or one with cookies (and other headers) passed manually.

Metadata

Metadata

Assignees

Labels

featureSomething to add

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions