CORS error on GCP, works fine on localhost
Budget: €8 – €30 EUR
Hi!
My MERN app works fine if the server runs on localhost (both if sending request from locally hosted frontend and uploaded version) but fails to get responses from the server after uploading it to Google Cloud Platform, throwing an error
"Access to XMLHttpRequest at 'server domain' from origin '*front domain*' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
I'll need this to be figured out today.
My MERN app works fine if the server runs on localhost (both if sending request from locally hosted frontend and uploaded version) but fails to get responses from the server after uploading it to Google Cloud Platform, throwing an error
"Access to XMLHttpRequest at 'server domain' from origin '*front domain*' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
I'll need this to be figured out today.