{"action":"opened","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/2894","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/2894/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2894/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/2894/events","html_url":"https://github.com/hapijs/hapi/issues/2894","id":114610278,"number":2894,"title":"CORS  headers to include 'Origin'","user":{"login":"nettaru","id":1736657,"avatar_url":"https://avatars.githubusercontent.com/u/1736657?v=3","gravatar_id":"","url":"https://api.github.com/users/nettaru","html_url":"https://github.com/nettaru","followers_url":"https://api.github.com/users/nettaru/followers","following_url":"https://api.github.com/users/nettaru/following{/other_user}","gists_url":"https://api.github.com/users/nettaru/gists{/gist_id}","starred_url":"https://api.github.com/users/nettaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nettaru/subscriptions","organizations_url":"https://api.github.com/users/nettaru/orgs","repos_url":"https://api.github.com/users/nettaru/repos","events_url":"https://api.github.com/users/nettaru/events{/privacy}","received_events_url":"https://api.github.com/users/nettaru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-02T14:56:29Z","updated_at":"2015-11-02T14:56:29Z","closed_at":null,"body":"Safari is sending 'Origin' in it's headers, and therefor is denied by hapi, which makes the OPTIONS request to fail and return 404:\r\n![screen shot 2015-11-02 at 15 46 10](https://cloud.githubusercontent.com/assets/1736657/10884706/c6a2a7a8-8179-11e5-9fe7-def0d38f6ad4.png)\r\n\r\nneed to add 'Origin' to the allowed headers to fix the issue:\r\nhttps://github.com/hapijs/hapi/blob/master/lib/defaults.js#L86\r\n"}}