Skip to content

Commit acfec92

Browse files
committed
add cookies config
1 parent 2a08b5a commit acfec92

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

config/cookies.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
return [
3+
/*
4+
|--------------------------------------------------------------------------
5+
| Auth Cookies
6+
|--------------------------------------------------------------------------
7+
|
8+
| When \TypeRocket\Services\SecureAuthCookiesService is enabled these
9+
| options will be used. Otherwise, you can ignore these.
10+
|
11+
*/
12+
'auth' => [
13+
14+
/*
15+
|--------------------------------------------------------------------------
16+
| SameSite Policy
17+
|--------------------------------------------------------------------------
18+
|
19+
| WordPress uses old PHP settings for its auth cookies. If you are using
20+
| PHP 7.3 or greater you can set the `SameSite` value for cookies. This
21+
| option defines the value of `SameSite`.
22+
|
23+
| Options: None, Lax or Strict
24+
|
25+
*/
26+
'same_site' => 'Lax',
27+
28+
/*
29+
|--------------------------------------------------------------------------
30+
| Timeout Period - Action Scheduler
31+
|--------------------------------------------------------------------------
32+
|
33+
| By default, WordPress adds `X-Frame-Options: SAMEORIGIN`. However, these
34+
| headers are often set by the web server instead. Set this option as
35+
| `false` to disable WordPress' x-frame-options.
36+
|
37+
*/
38+
'x_frame_options' => true,
39+
]
40+
];

0 commit comments

Comments
 (0)