Skip to content

🐛 Bug Report: Production CORS Cookie Drop (Cross-Origin Block) #678

@Aryan0819

Description

@Aryan0819

📜 Description

Problem
During local machine testing (localhost), cross-origin tracking works effortlessly. However, once you deploy the frontend to a provider like Netlify and the backend to a provider like Render, users can no longer log in. The backend handles credentials correctly and returns a successful authentication header, but the client browser instantly rejects and discards the cookie payload. This occurs because modern web browsers block cross-origin state tracking by default unless cookies are explicitly marked with secure, cross-site transport policies.

Solution
Configure your session store parameters to dynamically adjust cookie transport behavior based on the current deployment environment, ensuring strict transport security is enforced in production.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions