Skip to content

Commit

Permalink
Merge pull request #1505 from aleksandrychev/ENT-4400_3.24.x
Browse files Browse the repository at this point in the history
ENT-4400: Added Content-Security-Policy header to the Apache httpd config (3.24.x)
  • Loading branch information
craigcomstock authored Oct 11, 2024
2 parents 40b25d3 + f6a403d commit 6f9b4bb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deps-packaging/apache/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,23 @@ LogLevel warn
Header always set X-Frame-Options DENY
Header always set X-Content-Type-Options nosniff

Header always set Content-Security-Policy \
"frame-ancestors 'self'; \
default-src 'self'; \
script-src 'self' 'unsafe-inline'; \
style-src 'self' 'unsafe-inline' fonts.googleapis.com; \
object-src 'none'; \
frame-src 'self'; \
child-src 'self'; \
img-src 'self' data: blob: avatars.githubusercontent.com badges.gitter.im fonts.gstatic.com kiwiirc.com raw.githubusercontent.com; \
font-src 'self' data: fonts.googleapis.com fonts.gstatic.com; \
connect-src 'self' fonts.gstatic.com fonts.googleapis.com; \
manifest-src 'self'; \
base-uri 'self'; \
form-action 'self'; \
media-src 'self'; \
worker-src 'self' blob:;"

<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
Expand Down

0 comments on commit 6f9b4bb

Please sign in to comment.