Skip to content

Instantly share code, notes, and snippets.

@Shalelol
Shalelol / should-send-same-site-none.js
Last active January 24, 2020 07:03
A javascript version of the pseudo code in Chromium's SameSite=None: Known Incompatible Clients https://www.chromium.org/updates/same-site/incompatible-clients
// Copyright 2019 Google LLC.
// SPDX-License-Identifier: Apache-2.0
// Don’t send `SameSite=None` to known incompatible clients.
function shouldSendSameSiteNone() {
return !isSameSiteNoneIncompatible ();
}
// Classes of browsers known to be incompatible.