method

content_security_policy_report_only

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: ClassMethods
content_security_policy_report_only(report_only = true, **options) public

Overrides the globally configured Content-Security-Policy-Report-Only header:

class PostsController < ApplicationController
  content_security_policy_report_only only: :index
end

Pass false to remove the Content-Security-Policy-Report-Only header:

class PostsController < ApplicationController
  content_security_policy_report_only false, only: :index
end
Show source
Register or log in to add new notes.