diff options
author | Kevin Deisz <kevin.deisz@gmail.com> | 2018-04-06 15:13:28 -0400 |
---|---|---|
committer | Kevin Deisz <kevin.deisz@gmail.com> | 2018-04-06 15:13:28 -0400 |
commit | f22bc41a92e8f51d6f6da5b840f3364474d6aaba (patch) | |
tree | 96d039056180b5228f715160fcfae41a5e7126fc /actionpack/lib/action_controller/api.rb | |
parent | 03bd370c02a8fa83ab6dd01bdd99fe342c523b81 (diff) | |
download | rails-f22bc41a92e8f51d6f6da5b840f3364474d6aaba.tar.gz rails-f22bc41a92e8f51d6f6da5b840f3364474d6aaba.tar.bz2 rails-f22bc41a92e8f51d6f6da5b840f3364474d6aaba.zip |
Include default headers by default in API mode
ActionDispatch's default headers are now moved into their own module that are by default included in both Base and API. This allows API-mode applications to take advantage of the default security headers, as well as providing an easy way to add more.
Diffstat (limited to 'actionpack/lib/action_controller/api.rb')
-rw-r--r-- | actionpack/lib/action_controller/api.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/api.rb b/actionpack/lib/action_controller/api.rb index b192e496de..93ffff1bd6 100644 --- a/actionpack/lib/action_controller/api.rb +++ b/actionpack/lib/action_controller/api.rb @@ -122,6 +122,7 @@ module ActionController ForceSSL, DataStreaming, + DefaultHeaders, # Before callbacks should also be executed as early as possible, so # also include them at the bottom. |