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
One question is if the Handler for index should handle options requests at all, or if we should have a completely different options handler. This would allow for OPTIONS requests to bypass authentication for instance.
We found a good order of middelware to be:
Authenticate user token and set user in context if succesfull. Call next handler either way.
Access log middleware
CORS handler, pass through OPTIONS requests.
OPTION handler for a resource.Index
Require login barrier -- only pass through if authenticated.
It seams like an HTTP OPTIONS call will fetch resources if you do an OPTIONS call against a nested resource. E.g.:
Will result in a Find call against resource
parents
for items with ID123
. This does not seam like the right behavior.The text was updated successfully, but these errors were encountered: