{"action":"created","issue":{"url":"https://api.github.com/repos/denvned/isomorphic-relay-router/issues/13","repository_url":"https://api.github.com/repos/denvned/isomorphic-relay-router","labels_url":"https://api.github.com/repos/denvned/isomorphic-relay-router/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/denvned/isomorphic-relay-router/issues/13/comments","events_url":"https://api.github.com/repos/denvned/isomorphic-relay-router/issues/13/events","html_url":"https://github.com/denvned/isomorphic-relay-router/issues/13","id":130943608,"number":13,"title":"Cookies not being sent on Requests from Relay","user":{"login":"reactor81","id":14055426,"avatar_url":"https://avatars.githubusercontent.com/u/14055426?v=3","gravatar_id":"","url":"https://api.github.com/users/reactor81","html_url":"https://github.com/reactor81","followers_url":"https://api.github.com/users/reactor81/followers","following_url":"https://api.github.com/users/reactor81/following{/other_user}","gists_url":"https://api.github.com/users/reactor81/gists{/gist_id}","starred_url":"https://api.github.com/users/reactor81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactor81/subscriptions","organizations_url":"https://api.github.com/users/reactor81/orgs","repos_url":"https://api.github.com/users/reactor81/repos","events_url":"https://api.github.com/users/reactor81/events{/privacy}","received_events_url":"https://api.github.com/users/reactor81/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2016-02-03T07:51:21Z","updated_at":"2016-03-28T21:55:18Z","closed_at":"2016-02-03T10:05:48Z","body":"Hi, I have followed the instructions around for how to add cookies to Relay POST requests:\r\n\r\nin renderOnServer.js I added :\r\n\r\nRelay.injectNetworkLayer(new Relay.DefaultNetworkLayer(GRAPHQL_URL, {\r\n  credentials: 'same-origin',\r\n}));\r\n\r\nDoes it also need to be added somewhere else, for the client?\r\n\r\nUpon inspection in Chrome, it does not seem like the Cookie header is being passed. Have you tested this part? Is it an issue with isomorphic relay router?"},"comment":{"url":"https://api.github.com/repos/denvned/isomorphic-relay-router/issues/comments/202595941","html_url":"https://github.com/denvned/isomorphic-relay-router/issues/13#issuecomment-202595941","issue_url":"https://api.github.com/repos/denvned/isomorphic-relay-router/issues/13","id":202595941,"user":{"login":"bfwg","id":12819525,"avatar_url":"https://avatars.githubusercontent.com/u/12819525?v=3","gravatar_id":"","url":"https://api.github.com/users/bfwg","html_url":"https://github.com/bfwg","followers_url":"https://api.github.com/users/bfwg/followers","following_url":"https://api.github.com/users/bfwg/following{/other_user}","gists_url":"https://api.github.com/users/bfwg/gists{/gist_id}","starred_url":"https://api.github.com/users/bfwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfwg/subscriptions","organizations_url":"https://api.github.com/users/bfwg/orgs","repos_url":"https://api.github.com/users/bfwg/repos","events_url":"https://api.github.com/users/bfwg/events{/privacy}","received_events_url":"https://api.github.com/users/bfwg/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T21:55:18Z","updated_at":"2016-03-28T21:55:18Z","body":"I run into the same problem, the session on the server did not passed into the inject network layer. Right now I'm making `injectNetworkLayer` not global like this: \r\n```js\r\nexport default (req, res, next) => {\r\n  Relay.injectNetworkLayer(new Relay.DefaultNetworkLayer(GRAPHQL_URL, {\r\n    headers: req.headers,\r\n  }));\r\n  match({routes, location: req.originalUrl}, (error, redirectLocation, renderProps) => {\r\n  ...\r\n});\r\n```\r\nI know this will cause problems but is there any better ways to do it? @thelordoftheboards "}}