thefueley / scholar-power-api

UMGC CMSC 495 API for Scholar Power Workout App
GNU General Public License v3.0
0 stars 0 forks source link

CORS issue #23

Closed MoistCode closed 1 year ago

MoistCode commented 1 year ago

It looks like trying to create a new user still results in a CORS issue.

Access to fetch at 'https://test.seismos.io/api/v1/user/' from origin 'https://deft-torte-4578e5.netlify.app' 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.

It looks like we set this access control in the JSON middleware. Do you know if pre flight requests go through this middleware?