File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1769,7 +1769,14 @@ Raises an `AbstractController::ActionNotFound` when the action specified in call
1769
1769
1770
1770
# ### `config.action_controller.raise_on_open_redirects`
1771
1771
1772
- Raises an ` ActionController::Redirecting::UnsafeRedirectError` when an unpermitted open redirect occurs.
1772
+ Protect an application from unintentionally redirecting to an external host
1773
+ (also known as an " open redirect" ) by making external redirects opt- in .
1774
+
1775
+ When this configuration is set to ` true` , an
1776
+ ` ActionController::Redirecting::UnsafeRedirectError` will be raised when a URL
1777
+ with an external host is passed to [redirect_to][]. If an open redirect should
1778
+ be allowed, then ` allow_other_host: true` can be added to the call to
1779
+ ` redirect_to` .
1773
1780
1774
1781
The default value depends on the ` config.load_defaults` target version:
1775
1782
@@ -1778,6 +1785,8 @@ The default value depends on the `config.load_defaults` target version:
1778
1785
| (original) | ` false` |
1779
1786
| 7.0 | ` true` |
1780
1787
1788
+ [redirect_to]: https: // api.rubyonrails.org/ classes/ ActionController / Redirecting .html# method-i-redirect_to
1789
+
1781
1790
# ### `config.action_controller.log_query_tags_around_actions`
1782
1791
1783
1792
Determines whether controller context for query tags will be automatically
You can’t perform that action at this time.
0 commit comments