sharat87/httpbun

Support OPTIONS/CORS

kuhnroyal opened this issue · 2 comments

I have CORS requests which fail with "405: Method not allowed" when sending the pre-flight OPTIONS request.
It seems the response access control headers are correct but the OPTIONS method is considered not allowed because it is the put endpoint.

I think all endpoints should allow OPTIONS. What do you think?

Thanks @kuhnroyal for reporting this. Should be fixed now.

shot-2023-05-31-02-33-41

Thanks, I can confirm that it works now!