{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/2728","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/2728/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2728/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/2728/events","html_url":"https://github.com/hapijs/hapi/issues/2728","id":102496612,"number":2728,"title":"Access-Control-Request-Headers gone?","user":{"login":"Icehunter","id":677341,"avatar_url":"https://avatars.githubusercontent.com/u/677341?v=3","gravatar_id":"","url":"https://api.github.com/users/Icehunter","html_url":"https://github.com/Icehunter","followers_url":"https://api.github.com/users/Icehunter/followers","following_url":"https://api.github.com/users/Icehunter/following{/other_user}","gists_url":"https://api.github.com/users/Icehunter/gists{/gist_id}","starred_url":"https://api.github.com/users/Icehunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icehunter/subscriptions","organizations_url":"https://api.github.com/users/Icehunter/orgs","repos_url":"https://api.github.com/users/Icehunter/repos","events_url":"https://api.github.com/users/Icehunter/events{/privacy}","received_events_url":"https://api.github.com/users/Icehunter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hapijs/hapi/labels/non-issue","name":"non-issue","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-22T02:23:03Z","updated_at":"2015-08-22T16:07:06Z","closed_at":null,"body":"Just out of curiosity; I swear 2 days ago I was able to do:\r\n\r\n```javascript\r\nvar headers = request.headers['access-control-request-headers'];\r\n```\r\n\r\nIn that I got the headers that came from the request it self but flattened out into a string with the correct original capitalization.\r\n\r\nThe reason I ask was I had an all-purpose route setup to respond with accepts on all headers like so:\r\n\r\n```javascript\r\n    server.route({\r\n        method: 'OPTIONS',\r\n        path: '/{param*}',\r\n        handler: function (request, reply) {\r\n            // echo request headers back to caller (allow any requested)\r\n            var additionalHeaders = [];\r\n            if (request.headers['access-control-request-headers']) {\r\n                additionalHeaders = request.headers['access-control-request-headers'].split(', ');\r\n            }\r\n            var headers = _.union('Authorization, Content-Type, If-None-Match'.split(', '), additionalHeaders);\r\n            reply().type('text/plain')\r\n                .header('Access-Control-Allow-Origin', '*')\r\n                .header('Access-Control-Allow-Headers', headers.join(', '));\r\n        }\r\n    });\r\n```\r\n\r\nI was using 9.x.x but for some reason I can't get this in the values anymore. Is there a server setting which adds it that I might have removed?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/hapijs/hapi/issues/comments/133718031","html_url":"https://github.com/hapijs/hapi/issues/2728#issuecomment-133718031","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/2728","id":133718031,"user":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T16:07:06Z","updated_at":"2015-08-22T16:07:06Z","body":"0.12 will never be supported."}}