http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Is there a way to set the Access-Control-Allow-Methods header?

Open campadellos opened this issue 4 years ago • 1 comments

I tried with:

http-server web -p 4001 -P --cors="Access-Control-Allow-Methods: GET,HEAD,OPTIONS,POST,PUT"

but the header is not set appropriately I believe:

access-control-allow-headers : Origin, X-Requested-With, Content-Type, Accept, Range, Access-Control-Allow-Methods: GET, HEAD, OPTIONS, POST, PUT

Without this header, I cannot do any PUT call (GET works)

campadellos avatar May 03 '21 09:05 campadellos

This issue has been inactive for 180 days

github-actions[bot] avatar Apr 10 '22 12:04 github-actions[bot]