benoitdm-oslandia / pg_featureserv

Apache License 2.0
1 stars 0 forks source link

Bug - Wrong `access-control-allow-methods` header in read-only mode #174

Closed azarz closed 1 year ago

azarz commented 1 year ago

When I run pg_featureserv in read-only mode, and try to perform a POST request, I get the expected 405 Method Not Allowed error.

However, in the response, the access-control-allow-methods header has a value that seems wrong access-control-allow-methods: GET, PUT, POST, DELETE, HEAD, OPTIONS

azarz commented 1 year ago

Only appears in openAPI Swagger.