roaster icon indicating copy to clipboard operation
roaster copied to clipboard

OPTIONS request should return (in the Allow header) only those methods that are actually defined

Open dariok opened this issue 2 months ago • 0 comments

Assume a basic API with:

…
paths:
  /projects:
    get:
      …
    post:
      …
…

A request of OPTIONS http://localhost:8080/exist/apps/…/projects

currently returns

HTTP/1.1 200 OK
…
Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS
…

while it should only return

HTTP/1.1 200 OK
…
Allow: GET, POST, OPTIONS

dariok avatar Oct 27 '25 11:10 dariok