You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My api I generate signed links for download/upload files. When I use these links from my front-end in Vue.js I get CORS errors telling me that the origin is not the right one. fake-gcs-server is running with docker on localhost:8001 and my front-end on localhost:1234. In the code of this project there seems to be an "Access-Control-Allow-Origin: *" rule but it doesn't work. How can I authorize my front end to acces to these ressources?
I am getting the same error in my frontend. Here is the full line from my browser:
Access to XMLHttpRequest at 'http://localhost:8000/my-files/uploads/287f2dc8-82fe-4c9f-9bc9-5679c6860dfc/ZmVhdHVyZXR5cGUuU1RM?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=[...]&X-Goog-Date=20240103T042045Z&X-Goog-Expires=3600&X-Goog-SignedHeaders=host&X-Goog-Signature=[...]' from origin 'http://localhost:5173' 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.
Hi!
My api I generate signed links for download/upload files. When I use these links from my front-end in Vue.js I get CORS errors telling me that the origin is not the right one. fake-gcs-server is running with docker on localhost:8001 and my front-end on localhost:1234. In the code of this project there seems to be an "Access-Control-Allow-Origin: *" rule but it doesn't work. How can I authorize my front end to acces to these ressources?
This is my docker compose config :
Thanks
The text was updated successfully, but these errors were encountered: