{"action":"opened","issue":{"url":"https://api.github.com/repos/github/fetch/issues/266","labels_url":"https://api.github.com/repos/github/fetch/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/github/fetch/issues/266/comments","events_url":"https://api.github.com/repos/github/fetch/issues/266/events","html_url":"https://github.com/github/fetch/issues/266","id":129178063,"number":266,"title":"Setting specific cookies","user":{"login":"FoxxMD","id":4663766,"avatar_url":"https://avatars.githubusercontent.com/u/4663766?v=3","gravatar_id":"","url":"https://api.github.com/users/FoxxMD","html_url":"https://github.com/FoxxMD","followers_url":"https://api.github.com/users/FoxxMD/followers","following_url":"https://api.github.com/users/FoxxMD/following{/other_user}","gists_url":"https://api.github.com/users/FoxxMD/gists{/gist_id}","starred_url":"https://api.github.com/users/FoxxMD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FoxxMD/subscriptions","organizations_url":"https://api.github.com/users/FoxxMD/orgs","repos_url":"https://api.github.com/users/FoxxMD/repos","events_url":"https://api.github.com/users/FoxxMD/events{/privacy}","received_events_url":"https://api.github.com/users/FoxxMD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-27T15:31:46Z","updated_at":"2016-01-27T15:31:46Z","closed_at":null,"body":"I'm using [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) with this [isomorphic application](https://github.com/erikras/react-redux-universal-hot-example) and part of my authentication strategy entails using [encrypted cookies](https://github.com/mozilla/node-client-sessions) to store a token on the client.\r\n\r\nWhen using client-side rendering this works perfectly as I have `credentials: 'same-origin'` set in the options for `fetch` and all requests are made from the client, so the cookie gets sent.\r\n\r\nHowever when I choose to render server-side I need to be able to get that encrypted cookie from the initial request (sent by the client) and then attach it to requests made by `fetch` on the server.\r\n\r\nIn the isomorphic application they use `superagent` and are able to do this like so:\r\n\r\n```js\r\nif (__SERVER__ && req.get('cookie')) {\r\n  request.set('cookie', req.get('cookie'));\r\n}\r\n```\r\n\r\nbut I can't see a way to do the same thing with `fetch`. Is this possible?"}}