aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/api_app.md
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-10-02 14:45:31 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-10-02 14:45:31 -0700
commit37423e4ff883ad5584bab983aceb4b2b759a1fd8 (patch)
tree93dc7b22fc418927258ab290e9a48cb649bc1a0f /guides/source/api_app.md
parent55e6d2f0e344a5396f6d6448146efeb949a1c222 (diff)
downloadrails-37423e4ff883ad5584bab983aceb4b2b759a1fd8.tar.gz
rails-37423e4ff883ad5584bab983aceb4b2b759a1fd8.tar.bz2
rails-37423e4ff883ad5584bab983aceb4b2b759a1fd8.zip
removing Rack::Runtime from the default stack.
The runtime header is a potential target for timing attacks since it returns the amount of time spent on the server (eliminating network speed). Total time is also not accurate for streaming responses. The middleware can be added back via: ```ruby config.middleware.ues ::Rack::Runtime ```
Diffstat (limited to 'guides/source/api_app.md')
-rw-r--r--guides/source/api_app.md1
1 files changed, 0 insertions, 1 deletions
diff --git a/guides/source/api_app.md b/guides/source/api_app.md
index feaaff166a..eb762612ee 100644
--- a/guides/source/api_app.md
+++ b/guides/source/api_app.md
@@ -188,7 +188,6 @@ An API application comes with the following middlewares by default:
- `ActiveSupport::Cache::Strategy::LocalCache::Middleware`
- `ActionDispatch::RequestId`
- `Rails::Rack::Logger`
-- `Rack::Runtime`
- `ActionDispatch::ShowExceptions`
- `ActionDispatch::DebugExceptions`
- `ActionDispatch::RemoteIp`