serve
serve copied to clipboard
Would you accept a patch to implement CORS preflight?
You have a --cors
option, but it doesn't implement the preflight part of the protocol.
This is admittedly a kind of weird thing to ask a static server to do, but I have a server I'm trying to stub out that only responds to POST and gets sent a content-type
header that triggers preflight.
serve ./src -l 3200 --cors
worked