mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-27 23:29:52 -04:00
require X-Frame-Options: SAMEORIGIN
for clickjack prevention
This commit is contained in:
parent
e52f6e0f6d
commit
bd5fe86c87
1 changed files with 3 additions and 0 deletions
3
config/initializers/11-rack-protection.rb
Normal file
3
config/initializers/11-rack-protection.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
require 'rack/protection'
|
||||
|
||||
Rails.configuration.middleware.use Rack::Protection::FrameOptions
|
Loading…
Add table
Reference in a new issue