Skip to content

Commit

Permalink
container add CSP headers to Apache config (CO-2705)
Browse files Browse the repository at this point in the history
  • Loading branch information
skoranda committed Sep 29, 2023
1 parent 39349a5 commit 1fd7c64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions container/registry/base/comanage_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,8 @@ ServerName ${COMANAGE_REGISTRY_VIRTUAL_HOST_SCHEME:-http}://${COMANAGE_REGISTRY_
UseCanonicalName On
UseCanonicalPhysicalPort On
Header set Content-Security-Policy "frame-ancestors 'self';"
EOF
}
Expand Down Expand Up @@ -1195,6 +1197,7 @@ UseCanonicalName On
UseCanonicalPhysicalPort 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
Expand Down

0 comments on commit 1fd7c64

Please sign in to comment.