set default SameSite attribute to "lax"

This commit is contained in:
Rick van Lieshout 2020-10-04 09:51:53 +02:00
parent 35e45c3125
commit cb93ae6387
4 changed files with 9 additions and 3 deletions

View File

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

View File

@ -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"]);

View File

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

View File

@ -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 }) => <button {...props}>{children}</button>,
overlay: false,
overlayClasses: "",