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
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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