Skip to content

Implement default Referrer-Policy in Apache #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mig/install/apache-MiG-template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ Alias /status-events.json "__MIG_STATE__/wwwpublic/status-events.json"
# recommended by W3C and security scans.
Header always set Content-Security-Policy: "frame-ancestors 'self';"

# Set Referrer-Policy to prevent referrer info leaking to external sites as
# recommended by W3C and security scans.
Header always set Referrer-Policy "strict-origin-when-cross-origin"

# Force IE browsers to exit compatibility mode even if enabled for all
# intranet sites, which is the standard policy in some places.
<FilesMatch "(^$|\.(htm|html)$)">
Expand Down
4 changes: 4 additions & 0 deletions tests/fixture/confs-stdlocal/MiG.conf
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ Alias /status-events.json "/home/mig/state/wwwpublic/status-events.json"
# recommended by W3C and security scans.
Header always set Content-Security-Policy: "frame-ancestors 'self';"

# Set Referrer-Policy to prevent referrer info leaking to external sites as
# recommended by W3C and security scans.
Header always set Referrer-Policy "strict-origin-when-cross-origin"

# Force IE browsers to exit compatibility mode even if enabled for all
# intranet sites, which is the standard policy in some places.
<FilesMatch "(^$|\.(htm|html)$)">
Expand Down