Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
container add CSP headers to Apache config (CO-2705)
skoranda committed Sep 29, 2023
1 parent 2e61cb2 commit bf8e9e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions container/match/base/comanage_utils.sh
@@ -978,6 +978,9 @@ function comanage_utils::virtual_host_http_opening() {
<VirtualHost *:${COMANAGE_MATCH_HTTP_LISTEN_PORT:-80}>
ServerName ${COMANAGE_MATCH_VIRTUAL_HOST_SCHEME:-http}://${COMANAGE_MATCH_VIRTUAL_HOST_FQDN}:${COMANAGE_MATCH_VIRTUAL_HOST_PORT:-80}
UseCanonicalName On
Header set Content-Security-Policy "frame-ancestors 'self';"
EOF
}

@@ -1004,6 +1007,7 @@ ServerName ${COMANAGE_MATCH_VIRTUAL_HOST_SCHEME:-https}://${COMANAGE_MATCH_VIRTU
UseCanonicalName On
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
Header set Content-Security-Policy "frame-ancestors 'self';"
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3

0 comments on commit bf8e9e9

Please sign in to comment.