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
If you'll change line (routes1 and routes2).toRoutes(identity)
to (routes2 and routes1).toRoutes(identity), you'll get 405 on GET (not on POST)
The text was updated successfully, but these errors were encountered:
TheDIM47
changed the title
Getting 405 Method Not Allowed from combined routes with custom path value parsers and authentication
Getting 405 Method Not Allowed from combined routes with authentication
Jan 28, 2022
After some research I found simple way to reproduce the problem:
Test:
When
authenticated
returns FailureResponse, test failed with 405 "Method Not Allowed":But, when
authenticated
returns SuccessResponse, test passed.OK!
Where:
But this code passed OK for both cases:
If you'll change line
(routes1 and routes2).toRoutes(identity)
to
(routes2 and routes1).toRoutes(identity)
, you'll get 405 on GET (not on POST)The text was updated successfully, but these errors were encountered: