mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 02:05:41 +08:00
require X-Frame-Options: SAMEORIGIN
for clickjack prevention
This commit is contained in:
parent
e52f6e0f6d
commit
bd5fe86c87
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…
x
Reference in New Issue
Block a user