-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Custom Headers Dropped on Error #572
Comments
You are right, it is indeed better to attach custom HTTP headers to the response when an error occurs. |
Thanks for the commit! I updated async-graphql and async-graphql-actix-web to the latest git commit, and tested it again. It still seems like the headers are not being added, but it might not be totally fixed yet |
Sorry, I have fixed it. 🙂 |
No need to apologize! Headers on Errors are now working as expected! Feel free to close this issue. Also, you should setup Github sponsor! I'd totally be willing to help fund development. |
Haha, thank you! |
I'd like to add some custom headers to an Error response from a Guard, but it appears to silently drop them. It works fine when the response is not an Error. Essentially, I'm trying to return new tokens if the refresh token is valid and the access is not, and Error out.
Not sure if this is a bug or a feature request, feel free to move it.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: