Cloudflare DevelopersCD
Cloudflare Developersโ€ข2y agoโ€ข
1 reply
THEzombiePL

CORS Issues: PUT Requests Failing with Axios

I made two tunnels responsible for the frontend (NEXT) and backend (API - fastify).
The site works normally except for the PUT request from axios used to update the data.
I then receive an error:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
If I give access for everyone it works normally.
Was this page helpful?