{"action":"opened","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/3154","repository_url":"https://api.github.com/repos/hapijs/hapi","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/3154/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/3154/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/3154/events","html_url":"https://github.com/hapijs/hapi/issues/3154","id":155339921,"number":3154,"title":"CORS Headers not being set","user":{"login":"randallmeeker","id":2538537,"avatar_url":"https://avatars.githubusercontent.com/u/2538537?v=3","gravatar_id":"","url":"https://api.github.com/users/randallmeeker","html_url":"https://github.com/randallmeeker","followers_url":"https://api.github.com/users/randallmeeker/followers","following_url":"https://api.github.com/users/randallmeeker/following{/other_user}","gists_url":"https://api.github.com/users/randallmeeker/gists{/gist_id}","starred_url":"https://api.github.com/users/randallmeeker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randallmeeker/subscriptions","organizations_url":"https://api.github.com/users/randallmeeker/orgs","repos_url":"https://api.github.com/users/randallmeeker/repos","events_url":"https://api.github.com/users/randallmeeker/events{/privacy}","received_events_url":"https://api.github.com/users/randallmeeker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-17T19:20:11Z","updated_at":"2016-05-17T19:20:11Z","closed_at":null,"body":"There are a lot of CORS issues, I think I read all that apply and have come up empty handed. \r\n\r\nSetup\r\n```\r\nserver.connection({\r\n  host: '0.0.0.0',\r\n  port: 1337,\r\n  routes : {\r\n    cors: true\r\n  }\r\n})\r\n```\r\n\r\nUsing chrome these are the headers I'm getting back when making a pre-flight `OPTIONS` request.\r\n```\r\nHTTP/1.1 200 OK\r\ncontent-type: application/json; charset=utf-8\r\ncache-control: no-cache\r\nvary: accept-encoding\r\ncontent-encoding: gzip\r\nDate: Tue, 17 May 2016 19:09:23 GMT\r\nConnection: keep-alive\r\nTransfer-Encoding: chunked\r\n```\r\n\r\nNone of the cors headers getting set?\r\n\r\nNode v5\r\nHapi v13.4\r\n\r\nI have also tried setting `cors:true` on the route config, same response. I know that cors is getting initiated due to the status 200 on the pre-flight request. When I turn cors off I get the expected 404 status.\r\n\r\nI have attempted a Console log here: https://github.com/hapijs/hapi/blob/master/lib/cors.js#L131 , based on other issues read. I get no console log triggered. \r\n"}}