Same Site Changes in Chrome

Same Site Meaning:

Set-Cookie: key=value; Secure; SameSite=Strict

Chrome changes:

  1. SameSite by default cookies enforces the Lax value for all cookies that don’t specify the SameSite attribute:
  2. Cookies without SameSite must be secure requires that all cookies without SameSite attribute need to be Secure as well. Cookies that fail to do so will be rejected.
Chrome Same Site

What you need to do?

Set-Cookie: key=value; Secure; SameSite=None
def isSameSiteApplicable(userAgent: String): Boolean = {
if (userAgent == "" || userAgent.length == 0)

chromeIndex = userAgent.toLowerCase.indexOf(CHROME)
if (chromeIndex != -1) {
val index = userAgent.indexOf(".", chromeIndex)
if (index != -1) {
val version = userAgent.substring(chromeIndex + CHROME.length, index)
if (toInteger(version) >= 67) true else false
else false

def toInteger(s: String): Int = {
try {
} catch {
case e: Exception => 0





SDE-3 at PayPal

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Archit Agarwal

Archit Agarwal

SDE-3 at PayPal

More from Medium

Forms Collection without <form>

Introduction to Application Development: Client Layer

Top 9 Most Popular Angular JS Frameworks For The Year 2022!

Using Custom Cursors with Javascript for a Better User Experience