Socket
Socket
Sign inDemoInstall

should-send-same-site-none

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

2

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc