You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case I would expect the Access-Control-Allow-Methods to be set to GET (and HEAD if you want to stick with RFC 7231 and the response for PUT should be HTTP 405.
Good to see that HEAD works correctly (at least with curl).
Activity
fix: return 405 Method Not Allowed and scope CORS methods
fix: return 405 Method Not Allowed and scope CORS methods
fix: return 405 Method Not Allowed and scope CORS methods
fix: return 405 Method Not Allowed and scope CORS methods
fix: return 405 Method Not Allowed and scope CORS methods
fix: return 405 for wrong method, scope CORS allowed methods (#3)
pgagnidze commentedon Mar 22, 2026
Thanks for reporting this, @scossu! Both issues are fixed in #3:
PUT /heartbeatnow returns405 Method Not AllowedwithAllow: GET, OPTIONSOPTIONS /heartbeatpreflight now returnsAccess-Control-Allow-Methods: GET, OPTIONS(scoped to the path, not global)The fix will be available on LuaRocks once
v0.1.7is tagged.scossu commentedon Mar 22, 2026
Thanks for the quick fix @pgagnidze .