I am trying to upload a pdf file from vue webapp with this code
let storageRef = firebase.storage().ref();
let uploadTask = storageRef.child("results").put(file);
When I select the file, in the console, I am seeing this error.
(Reason: header ‘x-firebase-gmpid’ is not allowed according to header ‘Access-Control-Allow-Headers’ from CORS preflight response)
I have tried setting cors config via gsutil
[
{
"origin": ["*"],
"responseHeader": ["Content-Type"],
"method": ["GET", "HEAD", "DELETE"],
"maxAgeSeconds": 3600
}
]
still getting the same error.