-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorization with HTTP header not working #289
Comments
Encountering the same problem have tried using both postman and Insomnia. It doesn't matter if I use the decorator or this:
|
It's because of middleware
|
@sandnima Thanks a lot! Couldn't find a fix anywhere. Do you have a link or something where this was explained? |
Didn't that work for you? |
Didn't work for me. What's the rationale behind the fix? |
This didn't work for me, but I think I found a fix by changing the allow_any method, which appears to have some kind of bug in it. Not 100% sure what the root cause is. See my issue #291 |
Didn't work for me. Can someone help please? |
it worked for me thanks champion |
Problem:
I have a JWT token provided and verifyToken mutation is working properly with provided token
BUT when I set the Authorization header as "JWT <token>" it raises error with message "You do not have permission to perform this action."
(I have used login_required decorator in a mutation. I also use Postman for quering.)
(I can make query from browser when I am logged in to admin panel.)
setting.py:
The text was updated successfully, but these errors were encountered: