Skip to content

Support Cookies#44

Merged
skevy merged 1 commit intoskevy:masterfrom
brandonbloom:patch-1
Oct 15, 2016
Merged

Support Cookies#44
skevy merged 1 commit intoskevy:masterfrom
brandonbloom:patch-1

Conversation

@brandonbloom
Copy link
Copy Markdown
Contributor

Fixes #40.

See this corresponding change in express-graphql: graphql/express-graphql#30

Fixes skevy#40.

See this corresponding change in express-graphql: graphql/express-graphql#30
@brandonbloom
Copy link
Copy Markdown
Contributor Author

A word of warning: I haven't actually tested this change locally. I made it directly on GitHub, sorry about that.

@skevy skevy merged commit 9c5f7ae into skevy:master Oct 15, 2016
@skevy
Copy link
Copy Markdown
Owner

skevy commented Oct 15, 2016

Thanks!!

@kevinold
Copy link
Copy Markdown
Collaborator

@brandonbloom Yeah, I'm needing this support too, but when I develop locally, it's not sending a 'Cookies' header to my GraphQL endpoint. See electron/electron#1606 for a bug with electron not supporting Cookies header. I've tried bundling https://www.npmjs.com/package/electron-cookies but doesn't seem to work.

Ideas?

@kevinold
Copy link
Copy Markdown
Collaborator

I have found away around this by setting cookies in the mainWindow -- see kevinold@9cd8d6d

I'll iterate and open a PR when I like the implementation.

Right now you must set "Cookie" key then "URL!!!NAME!!!VAL" and it's a bit wonky.

Any suggestions are welcome.

@twolfson
Copy link
Copy Markdown

For anyone curious, another alternative is to open your development site via window.open('my-site') in dev tools and perform any necessary logins there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants