{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2263","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2263/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2263/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2263/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/2263","id":164121278,"number":2263,"title":"Header are not added from java script  with swaggerUi.api.clientAuthorizations.add(), but exist in Curl","user":{"login":"hmahida","id":12792062,"avatar_url":"https://avatars.githubusercontent.com/u/12792062?v=3","gravatar_id":"","url":"https://api.github.com/users/hmahida","html_url":"https://github.com/hmahida","followers_url":"https://api.github.com/users/hmahida/followers","following_url":"https://api.github.com/users/hmahida/following{/other_user}","gists_url":"https://api.github.com/users/hmahida/gists{/gist_id}","starred_url":"https://api.github.com/users/hmahida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmahida/subscriptions","organizations_url":"https://api.github.com/users/hmahida/orgs","repos_url":"https://api.github.com/users/hmahida/repos","events_url":"https://api.github.com/users/hmahida/events{/privacy}","received_events_url":"https://api.github.com/users/hmahida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-06T16:41:08Z","updated_at":"2016-07-06T18:09:56Z","closed_at":null,"body":"When reporting a bug, please provide the following details:\r\n- swagger-ui version 2.0\r\n- a swagger file reproducing the issue : index.html\r\n \r\nI am trying to add header named 'token' for each api call as;\r\n\r\nswaggerUi.api.clientAuthorizations.add(\"key1\", new SwaggerClient.ApiKeyAuthorization(\"token\", \"bearerToken\", \"header\"));\r\n\r\nBut I do not receive that header on server, also inspecting request header in browser is not showing that newly added header, it just send standard default headers.\r\n\r\nBut, swagger info message for the curl request for the same shows the header I added.\r\nWhat could be the reason?"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/230856982","html_url":"https://github.com/swagger-api/swagger-ui/issues/2263#issuecomment-230856982","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2263","id":230856982,"user":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T18:09:56Z","updated_at":"2016-07-06T18:09:56Z","body":"My guess is your server does not support the header `bearerToken`?  It's the same code so it should be trying to send it.  Take a look at your OPTIONS calls to see what it's trying and post back."}}
{"actor":{"display_login":"fehguy"}}