http-server
http-server copied to clipboard
Is there a way to set the Access-Control-Allow-Methods header?
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)
This issue has been inactive for 180 days