Skip to content

Commit

Permalink
Implement Cross-Origin-Opener-Policy Header
Browse files Browse the repository at this point in the history
Addresses issue: #6176
  • Loading branch information
evilaliv3 authored and Conor Schaefer committed Dec 9, 2021
1 parent 953c8bd commit bb426fa
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Header onsuccess unset X-Download-Options
Header always set X-Download-Options "noopen"
Header onsuccess unset Content-Security-Policy
Header always set Content-Security-Policy "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self';"
Header set Cross-Origin-Opener-Policy "same-origin"

# Limit the max submitted size of requests.
LimitRequestBody 524288000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Header onsuccess unset X-Download-Options
Header always set X-Download-Options "noopen"
Header onsuccess unset X-Content-Type-Options
Header always set X-Content-Type-Options "nosniff"
Header set Cross-Origin-Opener-Policy "same-origin"

Header unset Etag

Expand Down
2 changes: 2 additions & 0 deletions molecule/testinfra/vars/app-qubes-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ wanted_apache_headers:
X-Content-Type-Options: nosniff
X-Download-Options: noopen
Content-Security-Policy: "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self';"
Cross-Origin-Opener-Policy: "same-origin"


securedrop_venv: /opt/venvs/securedrop-app-code
securedrop_venv_bin: "{{ securedrop_venv }}/bin"
Expand Down
1 change: 1 addition & 0 deletions molecule/testinfra/vars/app-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ wanted_apache_headers:
X-Content-Type-Options: nosniff
X-Download-Options: noopen
Content-Security-Policy: "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self';"
Cross-Origin-Opener-Policy: "same-origin"

securedrop_venv: /opt/venvs/securedrop-app-code
securedrop_venv_bin: /opt/venvs/securedrop-app-code/bin
Expand Down
1 change: 1 addition & 0 deletions molecule/testinfra/vars/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ wanted_apache_headers:
X-Content-Type-Options: nosniff
X-Download-Options: noopen
Content-Security-Policy: "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self';"
Cross-Origin-Opener-Policy: "same-origin"

securedrop_venv: /opt/venvs/securedrop-app-code
securedrop_venv_bin: "/opt/venvs/securedrop-app-code/bin"
Expand Down
1 change: 1 addition & 0 deletions molecule/testinfra/vars/prodVM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ wanted_apache_headers:
X-Content-Type-Options: nosniff
X-Download-Options: noopen
Content-Security-Policy: "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self';"
Cross-Origin-Opener-Policy: "same-origin"

securedrop_venv: /opt/venvs/securedrop-app-code
securedrop_venv_bin: "/opt/venvs/securedrop-app-code/bin"
Expand Down
1 change: 1 addition & 0 deletions molecule/testinfra/vars/qubes-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ wanted_apache_headers:
X-Content-Type-Options: nosniff
X-Download-Options: noopen
Content-Security-Policy: "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self';"
Cross-Origin-Opener-Policy: "same-origin"

securedrop_venv: /opt/venvs/securedrop-app-code
securedrop_venv_bin: "/opt/venvs/securedrop-app-code/bin"
Expand Down
1 change: 1 addition & 0 deletions molecule/testinfra/vars/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ wanted_apache_headers:
X-Content-Type-Options: nosniff
X-Download-Options: noopen
Content-Security-Policy: "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self';"
Cross-Origin-Opener-Policy: "same-origin"

securedrop_venv: /opt/venvs/securedrop-app-code
securedrop_venv_bin: /opt/venvs/securedrop-app-code/bin
Expand Down

0 comments on commit bb426fa

Please sign in to comment.