aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/content_security_policy_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Skip generating empty CSP header when no policy is configuredKohei Suzuki2018-02-181-1/+1
| | | | | | | | `Rails.application.config.content_security_policy` is configured with no policies by default. In this case, Content-Security-Policy header should not be generated instead of generating the header with no directives. Firefox also warns "Content Security Policy: Couldn't process unknown directive ''".
* Add DSL for configuring Content-Security-Policy headerAndrew White2017-11-271-0/+197
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy