fix(api-public): return 405 for method mismatch instead of 500#5417
fix(api-public): return 405 for method mismatch instead of 500#5417abcxff wants to merge 1 commit into
Conversation
|
Stack for rivet-dev/rivet Get stack: change ltrttuxy |
Review: fix(api-public): return 405 for method mismatch instead of 500SummaryAdds an Bug: the 405 fallback also bypasses CORS, not just auth
I traced this through axum 0.8.4 (the version pinned in this workspace's
Concrete impact: a browser-based client that sends a cross-origin request to a valid path with an unsupported method (e.g. Suggested direction: register Minor: no test coverage for the new behavior
Nits
Overall: a good, minimal fix for the 500 case, but the CORS regression above should be addressed before merging, ideally with a regression test covering both the status code and the CORS headers. |
83af80b to
2f91374
Compare
No description provided.