should-send-same-site-none
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -11,3 +11,3 @@ function intToString(intValue) { | ||
function isSameSiteNoneCompatible(useragent) { | ||
return !isSameSiteNoneIncompatible(useragent); | ||
return !isSameSiteNoneIncompatible(String(useragent)); | ||
} | ||
@@ -14,0 +14,0 @@ |
@@ -79,3 +79,4 @@ const express = require("express"); | ||
"Safari @ ios 13": | ||
"Mozilla/5.0 (iPhone; CPU iPhone OS 13_0 like Mac OS X) AppleWebKit/602.1.38 (KHTML, like Gecko) Version/66.6 Mobile/14A5297c Safari/602.1" | ||
"Mozilla/5.0 (iPhone; CPU iPhone OS 13_0 like Mac OS X) AppleWebKit/602.1.38 (KHTML, like Gecko) Version/66.6 Mobile/14A5297c Safari/602.1", | ||
"Null": null, | ||
}; | ||
@@ -82,0 +83,0 @@ |
{ | ||
"name": "should-send-same-site-none", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "A simple utility to detect incompatible user agents for `SameSite=None` cookie attribute", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ # should-send-same-site-none | ||
- A **Express middleware** `shouldSendSameSiteNone` for automatically removing `SameSite=None` from response header when reqesting client is incompatible with `SameSite=None`. | ||
- A **Express middleware** `shouldSendSameSiteNone` for automatically removing `SameSite=None` from response header when reqesting client is incompatible with `SameSite=None`. (Note: You are still responsible for adding the 'Secure' cookie attribute whenever applicable.) | ||
@@ -10,0 +10,0 @@ ## Background |
20186
339