{"action":"created","issue":{"url":"https://api.github.com/repos/lfades/next-with-apollo/issues/5","repository_url":"https://api.github.com/repos/lfades/next-with-apollo","labels_url":"https://api.github.com/repos/lfades/next-with-apollo/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/lfades/next-with-apollo/issues/5/comments","events_url":"https://api.github.com/repos/lfades/next-with-apollo/issues/5/events","html_url":"https://github.com/lfades/next-with-apollo/issues/5","id":305778835,"number":5,"title":"Forward cookies from client","user":{"login":"alaister","id":10985857,"avatar_url":"https://avatars1.githubusercontent.com/u/10985857?v=4","gravatar_id":"","url":"https://api.github.com/users/alaister","html_url":"https://github.com/alaister","followers_url":"https://api.github.com/users/alaister/followers","following_url":"https://api.github.com/users/alaister/following{/other_user}","gists_url":"https://api.github.com/users/alaister/gists{/gist_id}","starred_url":"https://api.github.com/users/alaister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alaister/subscriptions","organizations_url":"https://api.github.com/users/alaister/orgs","repos_url":"https://api.github.com/users/alaister/repos","events_url":"https://api.github.com/users/alaister/events{/privacy}","received_events_url":"https://api.github.com/users/alaister/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-16T02:07:23Z","updated_at":"2018-03-16T02:39:46Z","closed_at":"2018-03-16T02:39:46Z","author_association":"NONE","body":"Thanks for the quick resolution of the last issue :)\r\nI am currently using regular old cookies for my sessions and I'm wondering if there is a way to \"forward\" them on from my Next server to my backend graphql server?\r\n\r\nMy apollo boost is currently configured to send cookies as follows:\r\n```javascript\r\nfetchOptions: {\r\n    credentials: 'same-origin'\r\n}\r\n```\r\nThis means when the request comes from the frontend my graphql server gets the cookie as it is supposed to. When the request is sent from the backend, however, the cookie is in `context.req.headers.cookie` which doesn't seem to be sent to the graphql server.\r\nWould the easiest way be to set the cookie header on the server side to `context.req.headers.cookie` for each server side request?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/lfades/next-with-apollo/issues/comments/373585986","html_url":"https://github.com/lfades/next-with-apollo/issues/5#issuecomment-373585986","issue_url":"https://api.github.com/repos/lfades/next-with-apollo/issues/5","id":373585986,"user":{"login":"alaister","id":10985857,"avatar_url":"https://avatars1.githubusercontent.com/u/10985857?v=4","gravatar_id":"","url":"https://api.github.com/users/alaister","html_url":"https://github.com/alaister","followers_url":"https://api.github.com/users/alaister/followers","following_url":"https://api.github.com/users/alaister/following{/other_user}","gists_url":"https://api.github.com/users/alaister/gists{/gist_id}","starred_url":"https://api.github.com/users/alaister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alaister/subscriptions","organizations_url":"https://api.github.com/users/alaister/orgs","repos_url":"https://api.github.com/users/alaister/repos","events_url":"https://api.github.com/users/alaister/events{/privacy}","received_events_url":"https://api.github.com/users/alaister/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T02:39:46Z","updated_at":"2018-03-16T02:39:46Z","author_association":"NONE","body":"I have reverted to using the regular links and it works like a charm - Thank you!"}}
{"actor":{"display_login":"alaister"}}