Back to forum

Access-Control-Allow-Origin

Answered

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

WebDataRocks Team WebDataRocks July 31, 2019

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

Move up