serve icon indicating copy to clipboard operation
serve copied to clipboard

Would you accept a patch to implement CORS preflight?

Open aboodman opened this issue 4 years ago • 1 comments

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.

aboodman avatar Feb 04 '21 08:02 aboodman

serve ./src -l 3200 --cors worked

DanyRupes avatar Sep 03 '21 07:09 DanyRupes