diff --git a/app/controllers/media_controller.rb b/app/controllers/media_controller.rb index 99a3f3431de3df30552b53a71c0597eac3b2f11c..3bf5b7eba73b4ea20c640e33a4e1a91dd32d21b4 100644 --- a/app/controllers/media_controller.rb +++ b/app/controllers/media_controller.rb @@ -45,6 +45,6 @@ class MediaController < ApplicationController end def allow_iframing - response.headers['X-Frame-Options'] = 'ALLOWALL' + response.headers.delete('X-Frame-Options') end end diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb index f1b2bc350d3466ca0953474b4ab999908c721573..1ff0fbd6001bf377505f4fa0903759848647a393 100644 --- a/app/controllers/statuses_controller.rb +++ b/app/controllers/statuses_controller.rb @@ -45,7 +45,7 @@ class StatusesController < ApplicationController return not_found if @status.hidden? || @status.reblog? expires_in 180, public: true - response.headers['X-Frame-Options'] = 'ALLOWALL' + response.headers.delete('X-Frame-Options') render layout: 'embedded' end