From cb93ae6387f90ed654d082327f7fe682cda256fa Mon Sep 17 00:00:00 2001 From: Mastermindzh Date: Sun, 4 Oct 2020 09:51:53 +0200 Subject: [PATCH] set default SameSite attribute to "lax" --- CHANGELOG.md | 6 ++++++ build/index.js | 2 +- package.json | 2 +- src/index.js | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32578cb..33718b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [[5.1.4](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/5.1.4)] + +### changed + +- set default SameSite attribute to "lax" because browsers are already implementing the cookie policy changes. + ## [[5.1.3](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/5.1.3)] ### changed diff --git a/build/index.js b/build/index.js index 39e212b..d3e2c16 100644 --- a/build/index.js +++ b/build/index.js @@ -1128,7 +1128,7 @@ module.exports = /******/ (function (modules) { disableButtonStyles: false, enableDeclineButton: false, flipButtons: false, - sameSite: SAME_SITE_OPTIONS.NONE, + sameSite: SAME_SITE_OPTIONS.LAX, ButtonComponent: function ButtonComponent(_ref3) { var children = _ref3.children, props = _objectWithoutProperties(_ref3, ["children"]); diff --git a/package.json b/package.json index 5f923c5..01db4ea 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "name": "Rick van Lieshout", "email": "info@rickvanlieshout.com" }, - "version": "5.1.2", + "version": "5.1.3", "description": "A small, simple and customizable cookie consent bar for use in React applications.", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/src/index.js b/src/index.js index 6e6c81f..d66b836 100644 --- a/src/index.js +++ b/src/index.js @@ -424,7 +424,7 @@ CookieConsent.defaultProps = { disableButtonStyles: false, enableDeclineButton: false, flipButtons: false, - sameSite: SAME_SITE_OPTIONS.NONE, + sameSite: SAME_SITE_OPTIONS.LAX, ButtonComponent: ({ children, ...props }) => , overlay: false, overlayClasses: "",