Black Lives Matter. Please consider donating to Black Girls Code today.

Cannot import CSV from HTTPS

Hi there.
I tried to import a .csv from my server (https based, link is 100% correct). Always get an error.

Any ideas?

The .csv is ok, if i upload it manually, there are no problems.

You probably have this error in the console (hitting F12 on the chart studio website):

Access to fetch at 'https://<link-to-your>.csv' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

If so, the solution could be an one liner if you’re using PHP:

header("Access-Control-Allow-Origin: *");