~cytrogen/masto-fe

fea0830614612f64d1d23d668b7ff44d1edf774a — Claire 2 years ago 541f64b
Remove invalid X-Frame-Options: ALLOWALL (#25070)

2 files changed, 2 insertions(+), 2 deletions(-)

M app/controllers/media_controller.rb
M app/controllers/statuses_controller.rb
M app/controllers/media_controller.rb => app/controllers/media_controller.rb +1 -1
@@ 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

M app/controllers/statuses_controller.rb => app/controllers/statuses_controller.rb +1 -1
@@ 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