afterResponse hook not working with preflight requests #560
Unanswered
Nikhil-Vats
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the afterResponse to check if the user's token is expired to redirect them to sign out page -
This is working when I test in security disabled browser mode to avoid CORS issue but when I am testing in the default mode of chrome, there is an additional preflight request that browser sends and even though the main request returns 401, the hook never runs. What can I do to make the hooks run with requests that have an additional preflight request?
Beta Was this translation helpful? Give feedback.
All reactions