CORS error
Im getting the following: Access to fetch at 'http://my-endpoint.username123.workers.dev/' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
http://localhost:3000 is frontend im running where im making post fetch request. when i call http://my-endpoint.username123.workers.dev/ via curl it works but not in frontend browser on localhost. How would i fix to try it on react localhost frontend
0 Replies