{"action":"closed","issue":{"url":"https://api.github.com/repos/hapijs/wreck/issues/116","repository_url":"https://api.github.com/repos/hapijs/wreck","labels_url":"https://api.github.com/repos/hapijs/wreck/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/wreck/issues/116/comments","events_url":"https://api.github.com/repos/hapijs/wreck/issues/116/events","html_url":"https://github.com/hapijs/wreck/issues/116","id":133328903,"number":116,"title":"h2o2 use","user":{"login":"jhawlwut","id":8193116,"avatar_url":"https://avatars.githubusercontent.com/u/8193116?v=3","gravatar_id":"","url":"https://api.github.com/users/jhawlwut","html_url":"https://github.com/jhawlwut","followers_url":"https://api.github.com/users/jhawlwut/followers","following_url":"https://api.github.com/users/jhawlwut/following{/other_user}","gists_url":"https://api.github.com/users/jhawlwut/gists{/gist_id}","starred_url":"https://api.github.com/users/jhawlwut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhawlwut/subscriptions","organizations_url":"https://api.github.com/users/jhawlwut/orgs","repos_url":"https://api.github.com/users/jhawlwut/repos","events_url":"https://api.github.com/users/jhawlwut/events{/privacy}","received_events_url":"https://api.github.com/users/jhawlwut/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hapijs/wreck/labels/question","name":"question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"geek","id":441346,"avatar_url":"https://avatars.githubusercontent.com/u/441346?v=3","gravatar_id":"","url":"https://api.github.com/users/geek","html_url":"https://github.com/geek","followers_url":"https://api.github.com/users/geek/followers","following_url":"https://api.github.com/users/geek/following{/other_user}","gists_url":"https://api.github.com/users/geek/gists{/gist_id}","starred_url":"https://api.github.com/users/geek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geek/subscriptions","organizations_url":"https://api.github.com/users/geek/orgs","repos_url":"https://api.github.com/users/geek/repos","events_url":"https://api.github.com/users/geek/events{/privacy}","received_events_url":"https://api.github.com/users/geek/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-12T19:54:39Z","updated_at":"2016-04-15T19:41:27Z","closed_at":"2016-04-15T19:41:27Z","body":"I have a use case where I'm using h2o2 to proxy to an API with SSL enabled, mostly for the UI to be able to interact with it. I manually set the cookie to localhost's domain and it passes through okay using \"passThrough\" set to true. Using postman or the browser, the cookie is correctly passed through state and all is well through the direct proxied route.\r\n\r\nI'm using wreck to make a few calls before the server loads the base route (\"/\") - I tried just calling the local h2o2 proxy route, but it appears the domain isn't getting set to pull the cookie from. The same occurs when I just try to call the external API directly with \"rejectUnauthorized\" set to false.\r\n\r\n```json\r\ndomain: \r\nDomain {\r\ndomain: null\r\n\r\n```\r\n\r\nAlso, state appears to be empty which I'm guessing is due to the domain not being passed to grab the cookie from localhost?\r\n\r\nAny ideas how to get this going? Or am I trying to do something that just isn't possible?\r\n\r\nMy wreck code basically looks like this:\r\n```javascript\r\nlet options = {\r\n baseUrl: 'http://localhost:9999',\r\n rejectUnauthorized: false,\r\n json: true\r\n};\r\nwreck.request('get', '/v1/ui/test', options, function (err, res) {\r\n console.log(res);\r\n wreck.read(res, {json:true}, function (err, body) {\r\n   reply(body);\r\n });\r\n});\r\n```\r\nWhere \"baseUrl\" is interchangeable with the direct API route vs localhost"}}