aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2018-04-09 08:06:58 -0400
committerGitHub <noreply@github.com>2018-04-09 08:06:58 -0400
commitab43b5405ea2b7db1b768e56fc56eaf0ee796f29 (patch)
tree51e5260ba12b4ed2a7cb0d78b8d5ad0b40a9e82b /actionpack/lib/action_controller
parentbc9fb9cf8b5dbe8ecf399ffd5d48d84bdb96a9db (diff)
parent34ab9982dc15f7f87253dabc67ec5c5e55f84e77 (diff)
downloadrails-ab43b5405ea2b7db1b768e56fc56eaf0ee796f29.tar.gz
rails-ab43b5405ea2b7db1b768e56fc56eaf0ee796f29.tar.bz2
rails-ab43b5405ea2b7db1b768e56fc56eaf0ee796f29.zip
Merge pull request #32502 from mrhead/improve-error-message
Improve the null origin error message
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/request_forgery_protection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
index 94092de96c..fc9cf8aaff 100644
--- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb
+++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -417,7 +417,7 @@ module ActionController #:nodoc:
NULL_ORIGIN_MESSAGE = <<~MSG
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 you the request came from a site that
+ 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.
If you cannot change the referrer policy, you can disable origin checking with the