Suggest 'strict-origin' Referrer-Policy header

This commit is contained in:
Tom Richards 2019-03-17 15:22:36 -04:00
parent 98e380f024
commit f80871fe60
No known key found for this signature in database
GPG Key ID: 0E2158D9187EF7AF
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ module ActionController #:nodoc:
The browser returned a 'null' origin for a request with origin-based forgery protection turned on. This usually
means you have the 'no-referrer' Referrer-Policy header enabled, or that the request came from a site that
refused to give its origin. This makes it impossible for Rails to verify the source of the requests. Likely the
best solution is to change your referrer policy to something less strict like same-origin or strict-same-origin.
best solution is to change your referrer policy to something less strict like same-origin or strict-origin.
If you cannot change the referrer policy, you can disable origin checking with the
Rails.application.config.action_controller.forgery_protection_origin_check setting.
MSG