{"action":"created","issue":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/132","repository_url":"https://api.github.com/repos/apollostack/apollo-client","labels_url":"https://api.github.com/repos/apollostack/apollo-client/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/apollo-client/issues/132/comments","events_url":"https://api.github.com/repos/apollostack/apollo-client/issues/132/events","html_url":"https://github.com/apollostack/apollo-client/issues/132","id":149815113,"number":132,"title":"Session cookie is not passed","user":{"login":"gauravtiwari","id":771039,"avatar_url":"https://avatars.githubusercontent.com/u/771039?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravtiwari","html_url":"https://github.com/gauravtiwari","followers_url":"https://api.github.com/users/gauravtiwari/followers","following_url":"https://api.github.com/users/gauravtiwari/following{/other_user}","gists_url":"https://api.github.com/users/gauravtiwari/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravtiwari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravtiwari/subscriptions","organizations_url":"https://api.github.com/users/gauravtiwari/orgs","repos_url":"https://api.github.com/users/gauravtiwari/repos","events_url":"https://api.github.com/users/gauravtiwari/events{/privacy}","received_events_url":"https://api.github.com/users/gauravtiwari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-20T16:11:07Z","updated_at":"2016-04-20T16:50:53Z","closed_at":null,"body":"Hey @stubailo @jbaxleyiii \r\n\r\nI checked out the Meteor demo and also @johnthepink PR for auth middleware. For SPA's this would work well, because they would need some kind of middleware to authenticate with server to share context, but if the app works in the same environment as server it would be important to share `session` state with server through apollo client during requests (also it's easier). You may have seen in Relay that they allow setting headers and passing session cookie: https://facebook.github.io/relay/docs/guides-network-layer.html directly through network layer. \r\n\r\nThis approach is super simple, what you think? Is am missing anything? "},"comment":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/comments/212511212","html_url":"https://github.com/apollostack/apollo-client/issues/132#issuecomment-212511212","issue_url":"https://api.github.com/repos/apollostack/apollo-client/issues/132","id":212511212,"user":{"login":"jbaxleyiii","id":4967600,"avatar_url":"https://avatars.githubusercontent.com/u/4967600?v=3","gravatar_id":"","url":"https://api.github.com/users/jbaxleyiii","html_url":"https://github.com/jbaxleyiii","followers_url":"https://api.github.com/users/jbaxleyiii/followers","following_url":"https://api.github.com/users/jbaxleyiii/following{/other_user}","gists_url":"https://api.github.com/users/jbaxleyiii/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaxleyiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaxleyiii/subscriptions","organizations_url":"https://api.github.com/users/jbaxleyiii/orgs","repos_url":"https://api.github.com/users/jbaxleyiii/repos","events_url":"https://api.github.com/users/jbaxleyiii/events{/privacy}","received_events_url":"https://api.github.com/users/jbaxleyiii/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T16:50:53Z","updated_at":"2016-04-20T16:50:53Z","body":"@gauravtiwari we use fetch behind the scenes which allows for sending cookies:\r\n\r\nCheck out https://github.com/github/fetch/blob/7f71c9bdccedaf65cf91b450b74065f8bed26d36/README.md#sending-cookies"}}