{"action":"created","issue":{"url":"https://api.github.com/repos/ottoyiu/django-cors-headers/issues/56","labels_url":"https://api.github.com/repos/ottoyiu/django-cors-headers/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/ottoyiu/django-cors-headers/issues/56/comments","events_url":"https://api.github.com/repos/ottoyiu/django-cors-headers/issues/56/events","html_url":"https://github.com/ottoyiu/django-cors-headers/issues/56","id":57235910,"number":56,"title":"HTTP_ORIGIN is empty so origin is False all the time","user":{"login":"eka","id":157223,"avatar_url":"https://avatars.githubusercontent.com/u/157223?v=3","gravatar_id":"","url":"https://api.github.com/users/eka","html_url":"https://github.com/eka","followers_url":"https://api.github.com/users/eka/followers","following_url":"https://api.github.com/users/eka/following{/other_user}","gists_url":"https://api.github.com/users/eka/gists{/gist_id}","starred_url":"https://api.github.com/users/eka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eka/subscriptions","organizations_url":"https://api.github.com/users/eka/orgs","repos_url":"https://api.github.com/users/eka/repos","events_url":"https://api.github.com/users/eka/events{/privacy}","received_events_url":"https://api.github.com/users/eka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-10T21:00:59Z","updated_at":"2015-12-28T16:22:13Z","closed_at":null,"body":"Whatever I do, request.META.get('HTTP_ORIGIN') return None\r\n\r\nI changed it for\r\n\r\n`origin = request.get_host()`\r\n\r\nand that made it work"},"comment":{"url":"https://api.github.com/repos/ottoyiu/django-cors-headers/issues/comments/167597783","html_url":"https://github.com/ottoyiu/django-cors-headers/issues/56#issuecomment-167597783","issue_url":"https://api.github.com/repos/ottoyiu/django-cors-headers/issues/56","id":167597783,"user":{"login":"bhaugen","id":117439,"avatar_url":"https://avatars.githubusercontent.com/u/117439?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaugen","html_url":"https://github.com/bhaugen","followers_url":"https://api.github.com/users/bhaugen/followers","following_url":"https://api.github.com/users/bhaugen/following{/other_user}","gists_url":"https://api.github.com/users/bhaugen/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaugen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaugen/subscriptions","organizations_url":"https://api.github.com/users/bhaugen/orgs","repos_url":"https://api.github.com/users/bhaugen/repos","events_url":"https://api.github.com/users/bhaugen/events{/privacy}","received_events_url":"https://api.github.com/users/bhaugen/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T16:22:13Z","updated_at":"2015-12-28T16:22:13Z","body":"@angry-elf - we deploy on Webfaction. Apache 2.something. I have no server fu, which is why we deploy on Webfaction. So I can't explain very much here. Sorry to disappoint. Maybe somebody else can come along and enlighten both of us."}}