Skip to content

Commit

Permalink
Fixed content security policy HTTP header. Thanks for reporting to @n…
Browse files Browse the repository at this point in the history
  • Loading branch information
jepf committed Feb 13, 2025
1 parent ba2f39d commit 0edc920
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 6.5.13 2025-02-13
- 2025-02-13 Fixed content security policy HTTP header. Thanks for reporting to @nixahnung. [#641](https://github.com/znuny/Znuny/issues/641)

# 6.5.12 2025-02-12
- 2025-02-06 Added SortBy and SortOrder options to Znuny.Form.Input.Set to sort select field options by key or value.
- 2025-02-05 Fixed event check in ticket event module Kernel::System::Ticket::Event::TicketDynamicFieldDefault.
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Output/HTML/Templates/Standard/HTTPHeaders.tt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ X-UA-Compatible: IE=edge,chrome=1
X-Frame-Options: SAMEORIGIN
[% END -%]
[% IF !Config("DisableContentSecurityPolicy") -%]
Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob;
Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:;
[% END -%]
X-Content-Type-Options: nosniff;
Referrer-Policy: no-referrer;
Expand Down
2 changes: 1 addition & 1 deletion scripts/apache2-httpd-plack-proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ProxyPassReverse /otrs/ http://localhost:5000/
<IfModule mod_headers.c>
<Directory "/opt/otrs/var/httpd/htdocs">
Header set X-Frame-Options "SAMEORIGIN"
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob;"
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:;"
Header set X-Content-Type-Options "nosniff"
Header set Referrer-Policy "no-referrer"
</Directory>
Expand Down
2 changes: 1 addition & 1 deletion scripts/apache2-httpd.include.conf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
<IfModule mod_headers.c>
<Directory "/opt/otrs/var/httpd/htdocs">
Header set X-Frame-Options "SAMEORIGIN"
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob;"
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:;"
Header set X-Content-Type-Options "nosniff"
Header set Referrer-Policy "no-referrer"
</Directory>
Expand Down

0 comments on commit 0edc920

Please sign in to comment.