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 a namespace responds to: POST, PUT, PATCH, GET, DELETE on a base resource - the Options preflight gives back a 404. If you remove any of the verbs it works as expected.
OK after some investigation - I've found the root cause being this line: return if not_allowed_methods.empty?
(Now on: lib/grape/api/instance.rb after my changes but originally introduced:) https://github.com/ruby-grape/grape/commit/e54b8b0e40d34b64df65c2002f0dcc8be7edfcf3
If a namespace responds to: POST, PUT, PATCH, GET, DELETE on a base resource - the Options preflight gives back a 404. If you remove any of the verbs it works as expected.
Spec reproducing the behaviour:
#2176
I'll investigate what's going on and attempt to fix
The text was updated successfully, but these errors were encountered: