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
Our tokens are being refreshed because of a background POST request that is then invalidly retried as a GET request by the browser because of the semantic ambiguity of 301 and 302.
For example:
accessToken expires
user-agent makes a background fetch request to POST /api/whatever
Lambda@Edge refreshes the tokens using the refresh token
Lambda@Edge responds with a 302 Location /api/whatever and Set-Cookie headers
user-agent retries the background fetch request to /api/whatever as a GET request which fails
What did you expect to have happen:
Should retry the request as a POST request again - a 307 status code rather than 302 would enforce this
How to reproduce this (as precisely and succinctly as possible):
This server behind cognito at edge should be able to reproduce the error (visible in the console/network panel)
What happened:
Our tokens are being refreshed because of a background POST request that is then invalidly retried as a GET request by the browser because of the semantic ambiguity of 301 and 302.
For example:
What did you expect to have happen:
How to reproduce this (as precisely and succinctly as possible):
This server behind cognito at edge should be able to reproduce the error (visible in the console/network panel)
Anything else you think we should know?
Environment:
The text was updated successfully, but these errors were encountered: