{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-resource/issues/47","labels_url":"https://api.github.com/repos/vuejs/vue-resource/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-resource/issues/47/comments","events_url":"https://api.github.com/repos/vuejs/vue-resource/issues/47/events","html_url":"https://github.com/vuejs/vue-resource/issues/47","id":106218584,"number":47,"title":"OPTIONS instead of GET,POST.. ","user":{"login":"keroumi","id":14260695,"avatar_url":"https://avatars.githubusercontent.com/u/14260695?v=3","gravatar_id":"","url":"https://api.github.com/users/keroumi","html_url":"https://github.com/keroumi","followers_url":"https://api.github.com/users/keroumi/followers","following_url":"https://api.github.com/users/keroumi/following{/other_user}","gists_url":"https://api.github.com/users/keroumi/gists{/gist_id}","starred_url":"https://api.github.com/users/keroumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keroumi/subscriptions","organizations_url":"https://api.github.com/users/keroumi/orgs","repos_url":"https://api.github.com/users/keroumi/repos","events_url":"https://api.github.com/users/keroumi/events{/privacy}","received_events_url":"https://api.github.com/users/keroumi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-13T13:57:04Z","updated_at":"2015-11-23T10:09:21Z","closed_at":null,"body":"Hello,\r\n\r\nI think I'm getting Options instead of GET or POST because of some CORS issues, how can I prevent this? \r\n\r\nThanks. "},"comment":{"url":"https://api.github.com/repos/vuejs/vue-resource/issues/comments/158894982","html_url":"https://github.com/vuejs/vue-resource/issues/47#issuecomment-158894982","issue_url":"https://api.github.com/repos/vuejs/vue-resource/issues/47","id":158894982,"user":{"login":"vedraan","id":5628166,"avatar_url":"https://avatars.githubusercontent.com/u/5628166?v=3","gravatar_id":"","url":"https://api.github.com/users/vedraan","html_url":"https://github.com/vedraan","followers_url":"https://api.github.com/users/vedraan/followers","following_url":"https://api.github.com/users/vedraan/following{/other_user}","gists_url":"https://api.github.com/users/vedraan/gists{/gist_id}","starred_url":"https://api.github.com/users/vedraan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vedraan/subscriptions","organizations_url":"https://api.github.com/users/vedraan/orgs","repos_url":"https://api.github.com/users/vedraan/repos","events_url":"https://api.github.com/users/vedraan/events{/privacy}","received_events_url":"https://api.github.com/users/vedraan/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T10:09:20Z","updated_at":"2015-11-23T10:09:20Z","body":"OPTIONS is always fired first if you're not sending requests to the same domain, so if you're server is not handling OPTIONS or doesn't have proper allow origin settings there, the GET/POST will never be sent.\r\nIt's not a bug, it's how CORS works. You would see the same thing if using angular/react or any other AJAX framework."}}