commit 26fd1aade303bc2f70d137c65779f52e3b94724a
parent 308aabac3243559706f20e4d129908da87c2ed1c
Author: Paul Szymanski <519954+PaulSzymanski@users.noreply.github.com>
Date: Thu, 16 Jul 2020 14:00:21 +0200
Set peerid cookie with SameSite=None; Secure
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/index.js b/server/index.js
@@ -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) {