Skip to content

Commit 56fb40a

Browse files
committed
fix: lint
1 parent d2a5201 commit 56fb40a

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

config/secure-headers.php

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*
1010
* Note: When server is empty string, it will not be added to the response header.
1111
*/
12-
1312
'server' => '',
1413

1514
/**
@@ -19,7 +18,6 @@
1918
*
2019
* Available Value: 'nosniff'
2120
*/
22-
2321
'x-content-type-options' => 'nosniff',
2422

2523
/**
@@ -29,7 +27,6 @@
2927
*
3028
* Available Value: 'on', 'off'
3129
*/
32-
3330
'x-dns-prefetch-control' => '',
3431

3532
/**
@@ -39,19 +36,16 @@
3936
*
4037
* Available Value: 'noopen'
4138
*/
42-
4339
'x-download-options' => 'noopen',
4440

4541
/**
4642
* X-Frame-Options
4743
*
4844
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
45+
* @deprecated The X-Frame-Options is no longer recommended for use; please use Content-Security-Policy (CSP) instead.
4946
*
5047
* Available Value: 'deny', 'sameorigin', 'allow-from <uri>'
51-
*
52-
* @deprecated The X-Frame-Options is no longer recommended for use; please use Content-Security-Policy (CSP) instead.
5348
*/
54-
5549
'x-frame-options' => 'sameorigin',
5650

5751
/**
@@ -61,7 +55,6 @@
6155
*
6256
* Available Value: 'all', 'none', 'master-only', 'by-content-type', 'by-ftp-filename'
6357
*/
64-
6558
'x-permitted-cross-domain-policies' => 'none',
6659

6760
/**
@@ -74,19 +67,16 @@
7467
*
7568
* @see https://github.com/bepsvpt/secure-headers/issues/58#issuecomment-782332442
7669
*/
77-
7870
'x-powered-by' => '',
7971

8072
/**
8173
* X-XSS-Protection
8274
*
8375
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
76+
* @deprecated The X-XSS-Protection is no longer recommended for use; please use Content-Security-Policy (CSP) instead.
8477
*
8578
* Available Value: '1', '0', '1; mode=block'
86-
*
87-
* @deprecated The X-XSS-Protection is no longer recommended for use; please use Content-Security-Policy (CSP) instead.
8879
*/
89-
9080
'x-xss-protection' => '',
9181

9282
/**
@@ -97,7 +87,6 @@
9787
* Available Value: 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin',
9888
* 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'
9989
*/
100-
10190
'referrer-policy' => 'no-referrer',
10291

10392
/**
@@ -107,7 +96,6 @@
10796
*
10897
* Available Value: 'unsafe-none', 'require-corp', 'credentialless'
10998
*/
110-
11199
'cross-origin-embedder-policy' => 'unsafe-none',
112100

113101
/**
@@ -117,7 +105,6 @@
117105
*
118106
* Available Value: 'unsafe-none', 'same-origin-allow-popups', 'same-origin'
119107
*/
120-
121108
'cross-origin-opener-policy' => 'unsafe-none',
122109

123110
/**
@@ -127,15 +114,13 @@
127114
*
128115
* Available Value: 'same-site', 'same-origin', 'cross-origin'
129116
*/
130-
131117
'cross-origin-resource-policy' => 'cross-origin',
132118

133119
/**
134120
* Clear-Site-Data
135121
*
136122
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data
137123
*/
138-
139124
'clear-site-data' => [
140125
'enable' => false,
141126

@@ -159,7 +144,6 @@
159144
*
160145
* Note: Please ensure your website had set up ssl/tls before enable hsts.
161146
*/
162-
163147
'hsts' => [
164148
'enable' => false,
165149

@@ -177,7 +161,6 @@
177161
*
178162
* Note: The array key is the endpoint name, and the value is the URL.
179163
*/
180-
181164
'reporting' => [
182165
// 'csp' => 'https://example.com/csp-reports',
183166
// 'nel' => 'https://example.com/nel-reports',
@@ -189,7 +172,6 @@
189172
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Network_Error_Logging
190173
* @see https://developer.mozilla.org/en-US/docs/Web/API/Reporting_API
191174
*/
192-
193175
'nel' => [
194176
'enable' => false,
195177

@@ -209,10 +191,8 @@
209191
* Expect-CT
210192
*
211193
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT
212-
*
213194
* @deprecated This feature is no longer recommended.
214195
*/
215-
216196
'expect-ct' => [
217197
'enable' => false,
218198

@@ -229,7 +209,6 @@
229209
*
230210
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy
231211
*/
232-
233212
'permissions-policy' => [
234213
'enable' => true,
235214

@@ -635,7 +614,6 @@
635614
*
636615
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
637616
*/
638-
639617
'csp' => [
640618
'enable' => true,
641619

0 commit comments

Comments
 (0)