@@ -266,8 +266,9 @@ seem generally applicable:
266
266
1. Sites should use Fetch Metadata to make good decisions about when to serve resources, as
267
267
described in [[resource-isolation-policy]] . In order to ensure that decision sticks, servers
268
268
should explain its decision to the browser by sending a <a http-header>`Vary`</a> header
269
- containing `Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site`. This ensures that the server has
270
- a chance to make different decisions for requests which will be *used* differently.
269
+ containing `Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User`. This ensures that
270
+ the server has a chance to make different decisions for requests which will be *used*
271
+ differently.
271
272
272
273
2. Subresources should opt-out of MIME type sniffing by sending an
273
274
<a http-header>`X-Content-Type-Options`</a> header with a value of `nosniff`. This increases the
@@ -302,7 +303,7 @@ few times below:
302
303
<pre highlight="http">
303
304
Content-Security-Policy: sandbox
304
305
Cross-Origin-Opener-Policy: same-origin
305
- Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site
306
+ Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User
306
307
X-Content-Type-Options: nosniff
307
308
X-Frame-Options: DENY
308
309
</pre>
@@ -358,7 +359,7 @@ in question. A few cases are well worth considering:
358
359
<strong> Cross-Origin-Resource-Policy: same-origin</strong>
359
360
Content-Security-Policy: sandbox
360
361
Cross-Origin-Opener-Policy: same-origin
361
- Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site
362
+ Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User
362
363
X-Content-Type-Options: nosniff
363
364
X-Frame-Options: DENY
364
365
</pre>
@@ -386,7 +387,7 @@ in question. A few cases are well worth considering:
386
387
Cross-Origin-Resource-Policy: same-origin</strong>
387
388
Content-Security-Policy: sandbox
388
389
Cross-Origin-Opener-Policy: same-origin
389
- Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site
390
+ Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User
390
391
X-Content-Type-Options: nosniff
391
392
X-Frame-Options: DENY
392
393
</pre>
@@ -412,7 +413,7 @@ in question. A few cases are well worth considering:
412
413
<strong> Cross-Origin-Resource-Policy: cross-origin</strong>
413
414
Content-Security-Policy: sandbox
414
415
Cross-Origin-Opener-Policy: same-origin
415
- Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site
416
+ Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User
416
417
X-Content-Type-Options: nosniff
417
418
X-Frame-Options: DENY
418
419
</pre>
@@ -451,7 +452,7 @@ headers could be appropriate:
451
452
<pre highlight="http">
452
453
Cross-Origin-Opener-Policy: same-origin
453
454
Cross-Origin-Resource-Policy: same-origin
454
- Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site
455
+ Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User
455
456
X-Content-Type-Options: nosniff
456
457
X-Frame-Options: SAMEORIGIN
457
458
</pre>
@@ -479,7 +480,7 @@ like the following set of response headers might be appropriate:
479
480
<pre highlight="http">
480
481
Cross-Origin-Opener-Policy: same-origin-allow-popups
481
482
Cross-Origin-Resource-Policy: same-origin
482
- Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site
483
+ Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User
483
484
X-Content-Type-Options: nosniff
484
485
X-Frame-Options: SAMEORIGIN
485
486
</pre>
@@ -506,7 +507,7 @@ or fetched cross-origin. Three scenarios are worth considering:
506
507
<pre highlight="http">
507
508
Cross-Origin-Resource-Policy: same-origin
508
509
<strong> Cross-Origin-Opener-Policy: unsafe-none</strong>
509
- Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site
510
+ Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User
510
511
X-Content-Type-Options: nosniff
511
512
X-Frame-Options: SAMEORIGIN
512
513
</pre>
@@ -521,7 +522,7 @@ or fetched cross-origin. Three scenarios are worth considering:
521
522
<pre highlight="http">
522
523
Cross-Origin-Resource-Policy: same-origin
523
524
Cross-Origin-Opener-Policy: same-origin
524
- Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site
525
+ Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User
525
526
X-Content-Type-Options: nosniff
526
527
<strong> X-Frame-Options: ALLOWALL</strong>
527
528
</pre>
@@ -549,7 +550,7 @@ or fetched cross-origin. Three scenarios are worth considering:
549
550
<pre class="lang-http">
550
551
Cross-Origin-Resource-Policy: same-origin
551
552
<strong> Cross-Origin-Opener-Policy: unsafe-none</strong>
552
- Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site
553
+ Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User
553
554
X-Content-Type-Options: nosniff
554
555
<strong> X-Frame-Options: ALLOWALL</strong>
555
556
</pre>
0 commit comments