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
I'm trying to allow CORS requests from any user, without any authentication. Thus I intend to use the exempt_methods parameter of FalconAuthMiddleware, as:
But this is not working, I still unable to make requests from the browser without getting a 401 status code. The only way I managed to do it was overriding Authentication for a specific resource, with something like:
class FooResource(BaseResource):
auth = {
'exempt_methods': ['OPTIONS']
}
...
This is not a elegant solution because I'll need to set auth.exempt_methods in every resource.
Any idea what is going on here? Thanks in advance!
The text was updated successfully, but these errors were encountered:
I'm trying to allow CORS requests from any user, without any authentication. Thus I intend to use the
exempt_methods
parameter ofFalconAuthMiddleware
, as:But this is not working, I still unable to make requests from the browser without getting a 401 status code. The only way I managed to do it was overriding Authentication for a specific resource, with something like:
This is not a elegant solution because I'll need to set
auth.exempt_methods
in every resource.Any idea what is going on here? Thanks in advance!
The text was updated successfully, but these errors were encountered: