Skip to content

Commit

Permalink
Disabled usage of X-XSS-Protection HTTP Header
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jan 25, 2024
1 parent 12dff3a commit 8a3363f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ protected void initGlobalSettings ()
// Peppol SMP is always http only
UnifiedResponseDefaultSettings.removeStrictTransportSecurity ();
}
// Instead of the service using the X-XSS-Protection header, a better way to
// protect against XSS attacks is final to define a final strong
// Content-Security-Policy header final that prevents the final execution of
// embedded final JavaScript code.
UnifiedResponseDefaultSettings.setEnableXSSFilter (false);

// Avoid writing unnecessary stuff
setHandleStatisticsOnEnd (SMPWebAppConfiguration.isPersistStatisticsOnEnd ());
Expand Down

0 comments on commit 8a3363f

Please sign in to comment.