Access-Control-Allow-Origin
Hi
I put my file on G Drive, when I run html, It inform as below:
It seems that this file doesn’t exist or ‘Access-Control-Allow-Origin’ header is absent in the resource requested.
Please help.
Thank You
Hoang
1 answer
Hello,
Thank you for posting your questions here.
The reason for this is that you are trying to access the resources from a different domain. Modern browsers follow CORS security policies to prevent such cross-domain requests.
We recommend either putting the data on your own server with configured CORS: https://enable-cors.org/, or using Google Drive API to obtain links to your files.
Regards,
WebDataRocks Team