I am facing CORS error whenever I try to access the image from localhost:5000
. This is the error I am facing.
app.html:1 Access to image at ‘https://example.io/icons/AWS/Res_Amazon-Redshift_Dense-Compute-Node_48.svg’ from origin ‘http://localhost:5000’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
I have added cors.json like this
[
{
"origin": ["localhost:5000"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
After that I have run the below command, but I am still facing this CORS error
gsutil cors set cors.json gs://[projectId].appspot.com