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

AJAX CALL (How to send a request to the server using XMLHttpRequest)

Easily done infinite image gallery

Error Handling in React JS

Introduction to Koa Js