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
The headers set in the backend should be reflected in the browser. The backend sets cookies (myRefreshToken and accessToken) during the sign-in process.
However, in the browser's "Application" tab, only the accessToken cookie is visible.
Additional Information
The withCredentials: true option is set in the Axios request.
The backend's CORS configuration allows credentials.
The SameSite attribute for the myRefreshToken cookie is set to lax.
Observation:
The response headers returned by the backend during the sign-in process contain the myRefreshToken cookies, as confirmed by logging console.log('Response headers:', response.headers);. While the headers appear correct in the network response and logs, the myRefreshToken cookie is not being set in the browser, even though it is present in the Set-Cookie header of the response.
The text was updated successfully, but these errors were encountered:
Thank you for opening this issue, and our apologies we haven't gotten around to it yet!
With the release of React Router v7 we are sun-setting continued development/maintenance on Remix v2. If you have not already upgraded to React Router v7, we recommend you do so. We've tried to make the upgrade process as smooth as possible with our Future Flags. We are now in the process of cleaning up outdated issues and pull requests to improve the overall hygiene of our repositories.
We plan to continue to address 2 types of issues in Remix v2:
Bugs that pose security concerns
Bugs that prevent upgrading to React Router v7
If you believe this issue meets one of those criteria, please respond or create a new issue.
For all other issues, ongoing maintenance will be happening in React Router v7, so:
If this is a feature request, please open a new Proposal Discussion in React Router, and if it gets enough community support it can be considered for implementation
If you have any questions you can always reach out on Discord. Thanks again for providing feedback and helping us make our framework even better!
Uh oh!
There was an error while loading. Please reload this page.
Reproduction
You can access the backend code: https://github.com/sidyr6002/chat-app-backend,
frontend code: https://github.com/sidyr6002/chat-app-frontend
Frontend Setup
.env
file with the following content:Backend Setup
cd /database docker compose up
.env
file with the following content:System Info
Used Package Manager
pnpm
Expected Behavior
The headers set in the backend should be reflected in the browser. The backend sets cookies (
myRefreshToken
andaccessToken
) during the sign-in process.Backend Code (NestJS):
Frontend Code (React Router Action):
The
signin
API sets themyRefreshToken
cookie in the backend and sends theaccessToken
to the frontend. Both cookies should appear in the browser.Actual Behavior
Only one cookie (
accessToken
) is being set in the browser. ThemyRefreshToken
cookie, which is set by the backend, does not appear in the browser.Upon inspecting the network request in the browser's developer tools, the response headers from the backend include both cookies:
However, in the browser's "Application" tab, only the
accessToken
cookie is visible.Additional Information
withCredentials: true
option is set in the Axios request.SameSite
attribute for themyRefreshToken
cookie is set tolax
.Observation:
The response headers returned by the backend during the sign-in process contain the myRefreshToken cookies, as confirmed by logging console.log('Response headers:', response.headers);. While the headers appear correct in the network response and logs, the myRefreshToken cookie is not being set in the browser, even though it is present in the Set-Cookie header of the response.
The text was updated successfully, but these errors were encountered: