{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt-community/apollo-module/issues/227","repository_url":"https://api.github.com/repos/nuxt-community/apollo-module","labels_url":"https://api.github.com/repos/nuxt-community/apollo-module/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/nuxt-community/apollo-module/issues/227/comments","events_url":"https://api.github.com/repos/nuxt-community/apollo-module/issues/227/events","html_url":"https://github.com/nuxt-community/apollo-module/pull/227","id":452727110,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg1NTU5MTM0","number":227,"title":"if our connecting client's req has headers.cookie, pass it in when SSR","user":{"login":"francoisp","id":581678,"node_id":"MDQ6VXNlcjU4MTY3OA==","avatar_url":"https://avatars2.githubusercontent.com/u/581678?v=4","gravatar_id":"","url":"https://api.github.com/users/francoisp","html_url":"https://github.com/francoisp","followers_url":"https://api.github.com/users/francoisp/followers","following_url":"https://api.github.com/users/francoisp/following{/other_user}","gists_url":"https://api.github.com/users/francoisp/gists{/gist_id}","starred_url":"https://api.github.com/users/francoisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoisp/subscriptions","organizations_url":"https://api.github.com/users/francoisp/orgs","repos_url":"https://api.github.com/users/francoisp/repos","events_url":"https://api.github.com/users/francoisp/events{/privacy}","received_events_url":"https://api.github.com/users/francoisp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2019-06-05T21:32:29Z","updated_at":"2019-09-17T09:49:05Z","closed_at":"2019-09-11T07:25:55Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/nuxt-community/apollo-module/pulls/227","html_url":"https://github.com/nuxt-community/apollo-module/pull/227","diff_url":"https://github.com/nuxt-community/apollo-module/pull/227.diff","patch_url":"https://github.com/nuxt-community/apollo-module/pull/227.patch"},"body":"I've come across this issue when using nuxt-apollo-express-session. Most interactions issued from the browsers' apollo-client have the session cookie attached, per the browser, but when a Vue template is SSR pre-rendered, the apollo server(postgraphile in my case, one word: WOW) request did not have the cookie set. It was annoying because I'm using express-sessions with \r\n\r\nsaveUninitialized: true \r\n\r\nand it would result in a bunch of spurious sessions.\r\n\r\nSo the solution is the following:\r\nif our connecting client's req has headers.cookie, pass it to our httpLink."},"comment":{"url":"https://api.github.com/repos/nuxt-community/apollo-module/issues/comments/532148213","html_url":"https://github.com/nuxt-community/apollo-module/pull/227#issuecomment-532148213","issue_url":"https://api.github.com/repos/nuxt-community/apollo-module/issues/227","id":532148213,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMjE0ODIxMw==","user":{"login":"kieusonlam","id":13093313,"node_id":"MDQ6VXNlcjEzMDkzMzEz","avatar_url":"https://avatars2.githubusercontent.com/u/13093313?v=4","gravatar_id":"","url":"https://api.github.com/users/kieusonlam","html_url":"https://github.com/kieusonlam","followers_url":"https://api.github.com/users/kieusonlam/followers","following_url":"https://api.github.com/users/kieusonlam/following{/other_user}","gists_url":"https://api.github.com/users/kieusonlam/gists{/gist_id}","starred_url":"https://api.github.com/users/kieusonlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kieusonlam/subscriptions","organizations_url":"https://api.github.com/users/kieusonlam/orgs","repos_url":"https://api.github.com/users/kieusonlam/repos","events_url":"https://api.github.com/users/kieusonlam/events{/privacy}","received_events_url":"https://api.github.com/users/kieusonlam/received_events","type":"User","site_admin":false},"created_at":"2019-09-17T09:49:05Z","updated_at":"2019-09-17T09:49:05Z","author_association":"COLLABORATOR","body":"@LuXDAmore I'm not sure, I tested on some of my small project, everything seem to be fine. Do you have any special config?"}}
{"actor":{"display_login":"kieusonlam"}}