Skip to content

Cookie blocked in Chrome when embed in an iframe #1401

Closed
@easychen

Description

@easychen

Some users of my website report that login not work when using the code-server embed in an iframe .

This seems to be related to the samesite setting adjusted in the latest version of chrome.

Is it possible to add an optional samesite option to setCookie to support the use of embedded in iframes?

This adjustment only needs to add extra parameters when setcookie, like:

setcookie ('cross-site-cookie', 'name', ['samesite' => 'None', 'secure' => true]);

Thanks.

Metadata

Metadata

Assignees

Labels

enhancementSome improvement that isn't a feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions