{"action":"created","issue":{"url":"https://api.github.com/repos/felixrieseberg/React-Dropzone-Component/issues/66","repository_url":"https://api.github.com/repos/felixrieseberg/React-Dropzone-Component","labels_url":"https://api.github.com/repos/felixrieseberg/React-Dropzone-Component/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/felixrieseberg/React-Dropzone-Component/issues/66/comments","events_url":"https://api.github.com/repos/felixrieseberg/React-Dropzone-Component/issues/66/events","html_url":"https://github.com/felixrieseberg/React-Dropzone-Component/issues/66","id":151831125,"number":66,"title":" Reason: CORS preflight channel failed","user":{"login":"Dhaval8087","id":7660739,"avatar_url":"https://avatars.githubusercontent.com/u/7660739?v=3","gravatar_id":"","url":"https://api.github.com/users/Dhaval8087","html_url":"https://github.com/Dhaval8087","followers_url":"https://api.github.com/users/Dhaval8087/followers","following_url":"https://api.github.com/users/Dhaval8087/following{/other_user}","gists_url":"https://api.github.com/users/Dhaval8087/gists{/gist_id}","starred_url":"https://api.github.com/users/Dhaval8087/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dhaval8087/subscriptions","organizations_url":"https://api.github.com/users/Dhaval8087/orgs","repos_url":"https://api.github.com/users/Dhaval8087/repos","events_url":"https://api.github.com/users/Dhaval8087/events{/privacy}","received_events_url":"https://api.github.com/users/Dhaval8087/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-29T09:53:30Z","updated_at":"2016-05-03T12:38:24Z","closed_at":"2016-05-03T12:38:24Z","body":"I have used Dropzone component in one of my component for upload the CSV.\r\n\r\nas a postUrl I am passing my webservice url, domain is different \r\nI mean my site working on http://localhost:50130/Importcsv and I have given the URL http://localhost:8005//UploadFile\r\n\r\n-I have checked with RestClient my Service is working fine but when I tried to give the same URL it gives me error 404(Not Foun) with following error in browser console \r\n\r\n\r\n**Cross- Origin application blocked : the Same Origin Policy is reading from the external source at http: // localhost: 8005 // Upload File TenantId = bc984c79 - d4f9-4dd6 - b8ad - f723aa2ba4af ​​& format = json not matter ? . ( Reason: CORS preflight channel failed ) .**\r\n"},"comment":{"url":"https://api.github.com/repos/felixrieseberg/React-Dropzone-Component/issues/comments/216514673","html_url":"https://github.com/felixrieseberg/React-Dropzone-Component/issues/66#issuecomment-216514673","issue_url":"https://api.github.com/repos/felixrieseberg/React-Dropzone-Component/issues/66","id":216514673,"user":{"login":"felixrieseberg","id":1426799,"avatar_url":"https://avatars.githubusercontent.com/u/1426799?v=3","gravatar_id":"","url":"https://api.github.com/users/felixrieseberg","html_url":"https://github.com/felixrieseberg","followers_url":"https://api.github.com/users/felixrieseberg/followers","following_url":"https://api.github.com/users/felixrieseberg/following{/other_user}","gists_url":"https://api.github.com/users/felixrieseberg/gists{/gist_id}","starred_url":"https://api.github.com/users/felixrieseberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixrieseberg/subscriptions","organizations_url":"https://api.github.com/users/felixrieseberg/orgs","repos_url":"https://api.github.com/users/felixrieseberg/repos","events_url":"https://api.github.com/users/felixrieseberg/events{/privacy}","received_events_url":"https://api.github.com/users/felixrieseberg/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T12:38:24Z","updated_at":"2016-05-03T12:38:24Z","body":"I assume that you need to work through CORS by adding a header to your service. Even if you're on the same domain, you're still hooking into a different port, meaning that cors would classify it as a different origin. \r\n\r\nIn detail, your service needs the following: `\"Access-Control-Allow-Origin\": \"*\"`\r\n\r\n(I'm closing this in the meantime, because we can't do anything here)"}}