Skip to content

Commit

Permalink
Fix for cross-site navigation block on default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Simbiat committed Dec 19, 2021
1 parent 288063d commit 0818153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HTTP20/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ public function secFetch(array $site = [], array $mode = [], array $user = [], a
#Setting defaults
$site = array_intersect($site, self::fetchSite);
if (empty($site)) {
#Allows only same-origin (site and subdomain) or top-navigation
$site = ['same-origin', 'none'];
#Allow everything, but stick to same port for "same" (same-origin, but not same-site)
$site = ['cross-site', 'same-origin', 'none'];
}
$mode = array_intersect($mode, self::fetchMode);
if (empty($mode)) {
Expand Down

0 comments on commit 0818153

Please sign in to comment.