最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

deployment - Cookies not appearing when deploying app to Railway, but work locally (using JWT) - Stack Overflow

programmeradmin2浏览0评论

I'm working on a project where I’m using JWT (JSON Web Tokens) stored in cookies to manage user sessions. Everything works perfectly when I run the app locally, and the cookies are being set and retrieved without any issues. However, when I deploy the app to Railway, the cookies stop appearing and I can't seem to retrieve them.

Here's a summary of the issue:

Cookies are being set and retrieved correctly when the app is running locally.

When I deploy the app to Railway, the cookies are not appearing in the browser (checked using the browser's developer tools).

I am using JWTs to store session data in cookies.

I've checked the cookie configuration (domain, path, secure flag, etc.) and they seem fine.

I’m using [insert relevant libraries/frameworks here, e.g., Express.js, React, etc.].

Has anyone faced a similar issue when deploying to Railway with JWTs stored in cookies? Are there any specific settings or configurations I should check to make sure the cookies are being sent correctly in the deployed version?

Any help or suggestions would be greatly appreciated!

Thank you in advance!

Here's the github repository: .git (I'm using the branch called Cinagro)

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论