Skip to content

Commit

Permalink
Merge pull request ManageIQ#823 from kbrock/oidc_same_site
Browse files Browse the repository at this point in the history
adding secure headers to apache
  • Loading branch information
Fryguy authored May 20, 2022
2 parents ee806cf + 26d08bb commit 4bcd909
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions manageiq-operator/pkg/helpers/miq-components/httpd_conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,27 @@ LimitRequestFieldSize 524288
ProxyPreserveHost on
<Location /assets/>
Header unset ETag
Header set Content-Security-Policy "default-src 'self'; child-src 'self'; connect-src 'self'; font-src 'self' fonts.gstatic.com; script-src 'self'; style-src 'self'; report-uri /dashboard/csp_report"
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-Permitted-Cross-Domain-Policies "none"
Header set X-XSS-Protection "1; mode=block"
FileETag None
ExpiresActive On
ExpiresDefault "access plus 1 year"
Header merge Cache-Control public
</Location>
<Location /packs/>
Header unset ETag
Header set Content-Security-Policy "default-src 'self'; child-src 'self'; connect-src 'self'; font-src 'self' fonts.gstatic.com; script-src 'self'; style-src 'self'; report-uri /dashboard/csp_report"
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-Permitted-Cross-Domain-Policies "none"
Header set X-XSS-Protection "1; mode=block"
FileETag None
ExpiresActive On
ExpiresDefault "access plus 1 year"
Header merge Cache-Control public
</Location>
<Location /proxy_pages/>
ErrorDocument 403 /error/noindex.html
Expand Down

0 comments on commit 4bcd909

Please sign in to comment.