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
{{ message }}
Repository navigation
An undeclared method on an auth: true extension mount answers 401/403 instead of 405 #915
/api/review/* declares methods: [POST], but GET answers 401.
/api/pending/* declares [GET, HEAD], but DELETE without Origin answers 403.
A signed-in same-origin PATCH answers 405.
Expected: a method the route doesn't declare is refused with 405 and Allow before the auth policy runs, consistent with core routes and with what the OpenAPI export describes.
Unverified: whether core auth: true routes that aren't extension mounts behave the same way.
Fixed in #919. On any route an extension protects, method admission now runs before every authorize(): agents/throttle, then 405 with Allow in the route's error format, then authorize. Tested on a protected mount, a core auth route and a JSON-format route, with zero authorize() calls for an undeclared method.
Activity
fix(core): extension mount ownership names both routes; 405 before ex…
jimhoyd commentedon Sep 29, 2026
Fixed in #919. On any route an extension protects, method admission now runs before every
authorize(): agents/throttle, then 405 withAllowin the route's error format, then authorize. Tested on a protected mount, a core auth route and a JSON-format route, with zeroauthorize()calls for an undeclared method.