I set my CORS header for Firebase Storage with the following cors.json and gsutil
[
{
"origin": ["*"],
"method": ["GET", "OPTIONS"],
"responseHeader": ["Range", "Content-Type"],
"maxAgeSeconds": 3600
}
]
But I still get this error:
MLHttpRequest cannot load http://url_to.csv. Request header field Range is not allowed by Access-Control-Allow-Headers in preflight response.
I also tried replacing Range with Content-Range but it didn't have any effect.