Skip to content

Commit

Permalink
Added Content-Security-Policy header to the Apache httpd config
Browse files Browse the repository at this point in the history
Ticket: ENT-4400
Signed-off-by: Ihor Aleksandrychiev <[email protected]>
(cherry picked from commit 5a8d1a9)
  • Loading branch information
aleksandrychev committed Oct 11, 2024
1 parent 0461507 commit f6a403d
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 f6a403d

Please sign in to comment.