{"action":"created","issue":{"url":"https://api.github.com/repos/axios/axios/issues/853","repository_url":"https://api.github.com/repos/axios/axios","labels_url":"https://api.github.com/repos/axios/axios/issues/853/labels{/name}","comments_url":"https://api.github.com/repos/axios/axios/issues/853/comments","events_url":"https://api.github.com/repos/axios/axios/issues/853/events","html_url":"https://github.com/axios/axios/issues/853","id":223618846,"number":853,"title":"Getting 'Cross-Origin Request Blocked' on a GET request","user":{"login":"adl1995","id":13198325,"avatar_url":"https://avatars0.githubusercontent.com/u/13198325?v=4","gravatar_id":"","url":"https://api.github.com/users/adl1995","html_url":"https://github.com/adl1995","followers_url":"https://api.github.com/users/adl1995/followers","following_url":"https://api.github.com/users/adl1995/following{/other_user}","gists_url":"https://api.github.com/users/adl1995/gists{/gist_id}","starred_url":"https://api.github.com/users/adl1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adl1995/subscriptions","organizations_url":"https://api.github.com/users/adl1995/orgs","repos_url":"https://api.github.com/users/adl1995/repos","events_url":"https://api.github.com/users/adl1995/events{/privacy}","received_events_url":"https://api.github.com/users/adl1995/received_events","type":"User","site_admin":false},"labels":[{"id":189475221,"url":"https://api.github.com/repos/axios/axios/labels/browser","name":"browser","color":"22B3C5","default":false},{"id":426263978,"url":"https://api.github.com/repos/axios/axios/labels/non-issue","name":"non-issue","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2017-04-23T07:36:06Z","updated_at":"2018-03-22T16:34:10Z","closed_at":"2017-08-17T20:02:47Z","author_association":"NONE","body":"#### Summary\r\n\r\nI'm making a GET request to 4chan's API for retrieving threads from a board. This is my code:\r\n\r\n```\r\nconst board = this.props.routeParams.tag;\r\nvar config = {\r\n    headers: {'Access-Control-Allow-Origin': '*'}\r\n};\r\naxios.get('https://a.4cdn.org/' + board + '/threads.json', config)\r\n    .then(function (response) {\r\n        console.log(response.data);\r\n});\r\n```\r\nI receive the following warning:\r\n\r\n`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://a.4cdn.org/a/threads.json. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).\r\n`\r\nAs seen above, I have added the relevant header, but it does not solve the issue. I made the same request from my terminal using cURL and it worked fine.\r\n\r\n#### Context\r\n\r\n- axios version: *e.g.: v0.16.0*\r\n- Environment: *e.g.: node v6.9.4, Firefox 51.0.1, Ubuntu 14.04*\r\n"},"comment":{"url":"https://api.github.com/repos/axios/axios/issues/comments/375371746","html_url":"https://github.com/axios/axios/issues/853#issuecomment-375371746","issue_url":"https://api.github.com/repos/axios/axios/issues/853","id":375371746,"user":{"login":"YvonneD","id":14529637,"avatar_url":"https://avatars0.githubusercontent.com/u/14529637?v=4","gravatar_id":"","url":"https://api.github.com/users/YvonneD","html_url":"https://github.com/YvonneD","followers_url":"https://api.github.com/users/YvonneD/followers","following_url":"https://api.github.com/users/YvonneD/following{/other_user}","gists_url":"https://api.github.com/users/YvonneD/gists{/gist_id}","starred_url":"https://api.github.com/users/YvonneD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YvonneD/subscriptions","organizations_url":"https://api.github.com/users/YvonneD/orgs","repos_url":"https://api.github.com/users/YvonneD/repos","events_url":"https://api.github.com/users/YvonneD/events{/privacy}","received_events_url":"https://api.github.com/users/YvonneD/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T16:34:10Z","updated_at":"2018-03-22T16:34:10Z","author_association":"NONE","body":"I spent hours to fix it and seems like no help everywhere. the simple and fast way is to add a chrome extension called Allow-Control-Allow-Origin*.  [](url)https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=en"}}
{"actor":{"display_login":"YvonneD"}}