{"action":"created","issue":{"url":"https://api.github.com/repos/chrisben/imgcache.js/issues/137","labels_url":"https://api.github.com/repos/chrisben/imgcache.js/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/chrisben/imgcache.js/issues/137/comments","events_url":"https://api.github.com/repos/chrisben/imgcache.js/issues/137/events","html_url":"https://github.com/chrisben/imgcache.js/issues/137","id":103891127,"number":137,"title":"Why is Origin not included in the http request header?","user":{"login":"5amfung","id":371691,"avatar_url":"https://avatars.githubusercontent.com/u/371691?v=3","gravatar_id":"","url":"https://api.github.com/users/5amfung","html_url":"https://github.com/5amfung","followers_url":"https://api.github.com/users/5amfung/followers","following_url":"https://api.github.com/users/5amfung/following{/other_user}","gists_url":"https://api.github.com/users/5amfung/gists{/gist_id}","starred_url":"https://api.github.com/users/5amfung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5amfung/subscriptions","organizations_url":"https://api.github.com/users/5amfung/orgs","repos_url":"https://api.github.com/users/5amfung/repos","events_url":"https://api.github.com/users/5amfung/events{/privacy}","received_events_url":"https://api.github.com/users/5amfung/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-30T00:21:42Z","updated_at":"2015-10-31T13:41:31Z","closed_at":"2015-10-31T13:41:31Z","body":"I noticed that request issued by imgcache does not include `Origin` in the http request header.  Is that a bug?\r\n\r\nThat's not the case for other requests generated by the angularjs app.\r\n\r\nThe lack of `Origin` in the request header is causing the server to not include `Access-Control-Allow-Origin` in the response header.  I use `django-cors-header` to handle the cors stuff.  I don't think it's an issue with the backend.  It's more a question why imgcache.js doesn't have the `Origin` in the request header like other requests?"},"comment":{"url":"https://api.github.com/repos/chrisben/imgcache.js/issues/comments/152736796","html_url":"https://github.com/chrisben/imgcache.js/issues/137#issuecomment-152736796","issue_url":"https://api.github.com/repos/chrisben/imgcache.js/issues/137","id":152736796,"user":{"login":"chrisben","id":679230,"avatar_url":"https://avatars.githubusercontent.com/u/679230?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisben","html_url":"https://github.com/chrisben","followers_url":"https://api.github.com/users/chrisben/followers","following_url":"https://api.github.com/users/chrisben/following{/other_user}","gists_url":"https://api.github.com/users/chrisben/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisben/subscriptions","organizations_url":"https://api.github.com/users/chrisben/orgs","repos_url":"https://api.github.com/users/chrisben/repos","events_url":"https://api.github.com/users/chrisben/events{/privacy}","received_events_url":"https://api.github.com/users/chrisben/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T13:41:31Z","updated_at":"2015-10-31T13:41:31Z","body":"ImgCache is using the Cordova FileTransfer plugin. Try to add the _Origin_ header to  _ImgCache.options.headers_, this should work."}}