diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2014-10-16 16:51:56 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2014-10-16 16:51:56 +0900 |
commit | 9510c1e360d39f8d5977e00f071a46af7f366c33 (patch) | |
tree | 7867de1ab566a2d90ac9fa45a1319fbd66dda7fb /guides | |
parent | 51278579477eb7ee20fe2aba53b4b13203791b22 (diff) | |
download | rails-9510c1e360d39f8d5977e00f071a46af7f366c33.tar.gz rails-9510c1e360d39f8d5977e00f071a46af7f366c33.tar.bz2 rails-9510c1e360d39f8d5977e00f071a46af7f366c33.zip |
[ci skip] add AC::InvalidCrossOriginRequest to list of rescue_responses default
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index be0478653b..58c3f217eb 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -368,20 +368,21 @@ encrypted cookies salt value. Defaults to `'signed encrypted cookie'`. ```ruby config.action_dispatch.rescue_responses = { - 'ActionController::RoutingError' => :not_found, - 'AbstractController::ActionNotFound' => :not_found, - 'ActionController::MethodNotAllowed' => :method_not_allowed, - 'ActionController::UnknownHttpMethod' => :method_not_allowed, - 'ActionController::NotImplemented' => :not_implemented, - 'ActionController::UnknownFormat' => :not_acceptable, - 'ActionController::InvalidAuthenticityToken' => :unprocessable_entity, - 'ActionDispatch::ParamsParser::ParseError' => :bad_request, - 'ActionController::BadRequest' => :bad_request, - 'ActionController::ParameterMissing' => :bad_request, - 'ActiveRecord::RecordNotFound' => :not_found, - 'ActiveRecord::StaleObjectError' => :conflict, - 'ActiveRecord::RecordInvalid' => :unprocessable_entity, - 'ActiveRecord::RecordNotSaved' => :unprocessable_entity + 'ActionController::RoutingError' => :not_found, + 'AbstractController::ActionNotFound' => :not_found, + 'ActionController::MethodNotAllowed' => :method_not_allowed, + 'ActionController::UnknownHttpMethod' => :method_not_allowed, + 'ActionController::NotImplemented' => :not_implemented, + 'ActionController::UnknownFormat' => :not_acceptable, + 'ActionController::InvalidAuthenticityToken' => :unprocessable_entity, + 'ActionController::InvalidCrossOriginRequest' => :unprocessable_entity, + 'ActionDispatch::ParamsParser::ParseError' => :bad_request, + 'ActionController::BadRequest' => :bad_request, + 'ActionController::ParameterMissing' => :bad_request, + 'ActiveRecord::RecordNotFound' => :not_found, + 'ActiveRecord::StaleObjectError' => :conflict, + 'ActiveRecord::RecordInvalid' => :unprocessable_entity, + 'ActiveRecord::RecordNotSaved' => :unprocessable_entity } ``` |