Skip to content

Commit

Permalink
Merge pull request #1504 from aleksandrychev/ENT-4400
Browse files Browse the repository at this point in the history
ENT-4400: Added Content-Security-Policy header to the Apache httpd config
  • Loading branch information
craigcomstock authored Oct 11, 2024
2 parents 6580e60 + 5a8d1a9 commit b76d054
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 b76d054

Please sign in to comment.