Skip to content

Commit

Permalink
Suppress deprecation warning: disable csp in report-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 authored and denschub committed Oct 29, 2016
1 parent be3b502 commit e18627f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions config/initializers/secure_headers.rb
Expand Up @@ -43,6 +43,7 @@
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
Expand Down

0 comments on commit e18627f

Please sign in to comment.