Unverified Commit e18627f5 authored by Benjamin Neff's avatar Benjamin Neff Committed by Dennis Schubert
Browse files

Suppress deprecation warning: disable csp in report-only mode

parent be3b5029
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ Note: Although this is a minor release, the configuration file changed because t
* Display error message when aspect membership changes fail [#7132](https://github.com/diaspora/diaspora/pull/7132)
* Avoid the creation of pod that are none [#7145](https://github.com/diaspora/diaspora/pull/7145)
* Fixed tag pages with alternate default aspect settings [#7262](https://github.com/diaspora/diaspora/pull/7162)
* Suppressed CSP related deprecation warnings [#7263](https://github.com/diaspora/diaspora/pull/7163)

## Features
* Deleted comments will be removed when loading more comments [#7045](https://github.com/diaspora/diaspora/pull/7045)
+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ SecureHeaders::Configuration.default do |config|
  csp[:report_uri] = [AppConfig.settings.csp.report_uri] if AppConfig.settings.csp.report_uri.present?

  if AppConfig.settings.csp.report_only?
    config.csp = SecureHeaders::OPT_OUT
    config.csp_report_only = csp
  else
    config.csp = csp