{"action":"opened","issue":{"url":"https://api.github.com/repos/giving-a-fuck-about-climate-change/carbondoomsday/issues/117","repository_url":"https://api.github.com/repos/giving-a-fuck-about-climate-change/carbondoomsday","labels_url":"https://api.github.com/repos/giving-a-fuck-about-climate-change/carbondoomsday/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/giving-a-fuck-about-climate-change/carbondoomsday/issues/117/comments","events_url":"https://api.github.com/repos/giving-a-fuck-about-climate-change/carbondoomsday/issues/117/events","html_url":"https://github.com/giving-a-fuck-about-climate-change/carbondoomsday/issues/117","id":296959329,"number":117,"title":"Allowing more (all?) domains for CORS","user":{"login":"Drazcmd","id":5714690,"avatar_url":"https://avatars3.githubusercontent.com/u/5714690?v=4","gravatar_id":"","url":"https://api.github.com/users/Drazcmd","html_url":"https://github.com/Drazcmd","followers_url":"https://api.github.com/users/Drazcmd/followers","following_url":"https://api.github.com/users/Drazcmd/following{/other_user}","gists_url":"https://api.github.com/users/Drazcmd/gists{/gist_id}","starred_url":"https://api.github.com/users/Drazcmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drazcmd/subscriptions","organizations_url":"https://api.github.com/users/Drazcmd/orgs","repos_url":"https://api.github.com/users/Drazcmd/repos","events_url":"https://api.github.com/users/Drazcmd/events{/privacy}","received_events_url":"https://api.github.com/users/Drazcmd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-14T02:52:29Z","updated_at":"2018-02-14T02:52:29Z","closed_at":null,"author_association":"NONE","body":"Given that this api consists entirely of side-effect free GETs, I think it'd be fairly safe to allow more/any domains in production. Right now it's just whitelisting carbondoomsday.com (see https://github.com/giving-a-fuck-about-climate-change/carbondoomsday/blob/master/carbondoomsday/settings.py#L242)\r\n\r\nI'm not too familiar with django stuff, but I believe the change would be pretty simple; probably just need something along the lines of:\r\n\r\nclass Production(CORSHeaderAllowAll, Dokku, OpbeatCredentials, Base):\r\n    \"\"\"The production environment.\"\"\"\r\n    ENVIRONMENT = 'Production'\r\n    ALLOWED_HOSTS = [\r\n        'api.carbondoomsday.com'\r\n    ]"}}
{"actor":{"display_login":"Drazcmd"}}