Set peerid cookie with SameSite=None; Secure
This commit is contained in:
parent
308aabac32
commit
26fd1aade3
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ class SnapdropServer {
|
|||
_onHeaders(headers, response) {
|
||||
if (response.headers.cookie && response.headers.cookie.indexOf('peerid=') > -1) return;
|
||||
response.peerId = Peer.uuid();
|
||||
headers.push('Set-Cookie: peerid=' + response.peerId);
|
||||
headers.push('Set-Cookie: peerid=' + response.peerId + "; SameSite=Strict; Secure");
|
||||
}
|
||||
|
||||
_onMessage(sender, message) {
|
||||
|
|
Loading…
Reference in a new issue