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
Description
The Starlette app with setting cors=true enables all origins, but only permits requests with the GET method. OPTIONS requests with other methods return a 400 response.
Steps to Reproduce
Initialize an instance of the Starlette APP with config setting server.cors=true
Issue an OPTIONS request for a valid endpoint against the Starlette APP, setting both origin and Access-Control-Request-Method headers. *Note Access-Control-Request-Method should be something other than GET.
Check the server response, which should be a 400 - Disallowed CORS method
Expected behavior
Enabling the server.cors setting should enable common request methods for all origins.
Screenshots/Tracebacks
Environment
OS: Windows 11
Python version: Python 3.11.5
pygeoapi version: 0.18.dev0
The text was updated successfully, but these errors were encountered:
Description
The Starlette app with setting cors=true enables all origins, but only permits requests with the GET method. OPTIONS requests with other methods return a 400 response.
Steps to Reproduce
server.cors=true
origin
andAccess-Control-Request-Method
headers. *NoteAccess-Control-Request-Method
should be something other than GET.400 - Disallowed CORS method
Expected behavior
Enabling the
server.cors
setting should enable common request methods for all origins.Screenshots/Tracebacks
Environment
The text was updated successfully, but these errors were encountered: