{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/5010","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/5010/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/5010/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/5010/events","html_url":"https://github.com/prometheus/prometheus/issues/5010","id":392115873,"node_id":"MDU6SXNzdWUzOTIxMTU4NzM=","number":5010,"title":"CORS: Leave user configure CORS in prometheus.yml","user":{"login":"aloababa","id":8696292,"node_id":"MDQ6VXNlcjg2OTYyOTI=","avatar_url":"https://avatars0.githubusercontent.com/u/8696292?v=4","gravatar_id":"","url":"https://api.github.com/users/aloababa","html_url":"https://github.com/aloababa","followers_url":"https://api.github.com/users/aloababa/followers","following_url":"https://api.github.com/users/aloababa/following{/other_user}","gists_url":"https://api.github.com/users/aloababa/gists{/gist_id}","starred_url":"https://api.github.com/users/aloababa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aloababa/subscriptions","organizations_url":"https://api.github.com/users/aloababa/orgs","repos_url":"https://api.github.com/users/aloababa/repos","events_url":"https://api.github.com/users/aloababa/events{/privacy}","received_events_url":"https://api.github.com/users/aloababa/received_events","type":"User","site_admin":false},"labels":[{"id":689154505,"node_id":"MDU6TGFiZWw2ODkxNTQ1MDU=","url":"https://api.github.com/repos/prometheus/prometheus/labels/component/api","name":"component/api","color":"0052cc","default":false},{"id":365563592,"node_id":"MDU6TGFiZWwzNjU1NjM1OTI=","url":"https://api.github.com/repos/prometheus/prometheus/labels/kind/enhancement","name":"kind/enhancement","color":"c7def8","default":false},{"id":365563587,"node_id":"MDU6TGFiZWwzNjU1NjM1ODc=","url":"https://api.github.com/repos/prometheus/prometheus/labels/low%20hanging%20fruit","name":"low hanging fruit","color":"006b75","default":false},{"id":647013637,"node_id":"MDU6TGFiZWw2NDcwMTM2Mzc=","url":"https://api.github.com/repos/prometheus/prometheus/labels/priority/P3","name":"priority/P3","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-18T11:35:38Z","updated_at":"2018-12-18T12:38:47Z","closed_at":null,"author_association":"NONE","body":"According to prometheus code Allowed Origin is always set to '*'.\r\n\r\n`\r\nvar corsHeaders = map[string]string{\r\n\t\"Access-Control-Allow-Headers\":  \"Accept, Authorization, Content-Type, Origin\",\r\n\t\"Access-Control-Allow-Methods\":  \"GET, OPTIONS\",\r\n\t\"Access-Control-Allow-Origin\":   \"*\",\r\n\t\"Access-Control-Expose-Headers\": \"Date\",\r\n}\r\n`\r\n\r\nSo what if i want a single allowed origin ?\r\n\r\nIt would be nice to allow user configure allowed origins or disable cors in prometheus.yml "},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/448206725","html_url":"https://github.com/prometheus/prometheus/issues/5010#issuecomment-448206725","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/5010","id":448206725,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODIwNjcyNQ==","user":{"login":"geekodour","id":12918431,"node_id":"MDQ6VXNlcjEyOTE4NDMx","avatar_url":"https://avatars3.githubusercontent.com/u/12918431?v=4","gravatar_id":"","url":"https://api.github.com/users/geekodour","html_url":"https://github.com/geekodour","followers_url":"https://api.github.com/users/geekodour/followers","following_url":"https://api.github.com/users/geekodour/following{/other_user}","gists_url":"https://api.github.com/users/geekodour/gists{/gist_id}","starred_url":"https://api.github.com/users/geekodour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekodour/subscriptions","organizations_url":"https://api.github.com/users/geekodour/orgs","repos_url":"https://api.github.com/users/geekodour/repos","events_url":"https://api.github.com/users/geekodour/events{/privacy}","received_events_url":"https://api.github.com/users/geekodour/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T12:38:47Z","updated_at":"2018-12-18T12:38:47Z","author_association":"NONE","body":"I'll try to send a PR for this one today."}}
{"actor":{"display_login":"geekodour"}}