Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to XMLHttpRequest at 'https://httpbin.org/post' from origin 'https://react-dropzone-uploader.js.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. #210

Open
Ravi-Seffcon opened this issue May 25, 2023 · 0 comments

Comments

@Ravi-Seffcon
Copy link

Ravi-Seffcon commented May 25, 2023

I integrated the react-dropzone-uploader in my project and on the staging instance, during some testing, realized that not all files get uploaded seamlessly.

I then check the demo at https://react-dropzone-uploader.js.org/docs/quick-start and reproduced the same issue.
Many times, not all files dropped get uploaded. It gives the error as:

Access to XMLHttpRequest at 'https://httpbin.org/post' from origin 'https://react-dropzone-uploader.js.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. VM33:20 exception_upload {name: 'nature1.jpg', size: 6800, type: 'image/jpeg', lastModifiedDate: '2016-06-20T19:09:22.000Z', uploadedDate: '2023-05-25T10:29:54.249Z', …} File {name: 'nature1.jpg', lastModified: 1466449762000, lastModifiedDate: Tue Jun 21 2016 00:39:22 GMT+0530 (India Standard Time), webkitRelativePath: '', size: 6800, …} bundle.4e191a10.js:12 POST https://httpbin.org/post net::ERR_FAILED 504 _calle

error

Can you someone please advise?

@Ravi-Seffcon Ravi-Seffcon changed the title cess to XMLHttpRequest at 'https://httpbin.org/post' from origin 'https://react-dropzone-uploader.js.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Access to XMLHttpRequest at 'https://httpbin.org/post' from origin 'https://react-dropzone-uploader.js.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant