Remove invalid X-Frame-Options: ALLOWALL (#25070)

local
Claire 1 year ago committed by GitHub
parent 541f64b2bb
commit fea0830614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/controllers/media_controller.rb
  2. 2
      app/controllers/statuses_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

@ -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

Loading…
Cancel
Save