File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
app/code/Magento/Cookie/view/base/web/js Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,11 @@ define([
16
16
* @private
17
17
*/
18
18
function _extend ( storage ) {
19
+ var cookiesConfig = window . cookiesConfig || { } ;
20
+
19
21
$ . extend ( storage , {
20
- _secure : window . cookiesConfig ? window . cookiesConfig . secure : false ,
21
- _samesite : window . cookiesConfig ? window . cookiesConfig . samesite : 'lax' ,
22
+ _secure : ! ! cookiesConfig . secure ,
23
+ _samesite : cookiesConfig . samesite ? cookiesConfig . samesite : 'lax' ,
22
24
23
25
/**
24
26
* Set value under name
Original file line number Diff line number Diff line change 47
47
options . path ? '; path=' + options . path : '' ,
48
48
options . domain ? '; domain=' + options . domain : '' ,
49
49
options . secure ? '; secure' : '' ,
50
- options . samesite ? '; samesite=' + options . samesite : 'lax' ,
50
+ '; samesite=' + ( options . samesite ? options . samesite : 'lax' ) ,
51
51
] . join ( '' ) ) ;
52
52
}
53
53
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ define([
76
76
( path ? '; path=' + path : '' ) +
77
77
( domain ? '; domain=' + domain : '' ) +
78
78
( secure ? '; secure' : '' ) +
79
- ( samesite ? '; samesite=' + samesite : 'lax' ) ;
79
+ '; samesite=' + ( samesite ? samesite : 'lax' ) ;
80
80
} ;
81
81
82
82
/**
You can’t perform that action at this time.
0 commit comments