Cannot upload files to Google Cloud Storage from embedded app due to CORS error

Error message when trying to upload a CSV file to Google Cloud Storage:

b172cee8-191b-11ee-9cdd-db497784de0f:1 
Access to fetch at 'https://storage.googleapis.com/<rest of url>' 
from origin 'https://retool.runwith.us' has been blocked by CORS policy: 
Response to preflight request doesn't pass access control check: 
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.

Found the issue, had to add our custom domain to the cors file Connect to Google Cloud Storage | Retool Docs

1 Like

Thanks for sharing what solved this so others who might run into the same thing can learn from this post! :bowing_woman: