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
If a token is obsolete or corrupted, API answer 401 response (Not authorized).
But in this case, Access-Control-Allow-Origin header in response is not set.
This combinaison (401 + no ACAO header) is interpreted by browsers as an invalid CORS request, and thus, absolutly not response data is provided to client javascript, to prevent any invalid utilisation of CORS data.
To reproduce :
on client side, send a XMLTHttpRequest to API with a fake Authorization header
set a onreadystate callback on your request
Try to see the response content in javascript : impossible. However, the response exists in dev console
The text was updated successfully, but these errors were encountered:
If a token is obsolete or corrupted, API answer 401 response (Not authorized).
But in this case, Access-Control-Allow-Origin header in response is not set.
This combinaison (401 + no ACAO header) is interpreted by browsers as an invalid CORS request, and thus, absolutly not response data is provided to client javascript, to prevent any invalid utilisation of CORS data.
To reproduce :
The text was updated successfully, but these errors were encountered: