Skip to content

Commit

Permalink
Remove invalid X-Frame-Options: ALLOWALL (mastodon#25070)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Jun 21, 2023
1 parent 7ff69de commit 9bbec69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/media_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ def check_playable
end

def allow_iframing
response.headers['X-Frame-Options'] = 'ALLOWALL'
response.headers.delete('X-Frame-Options')
end
end
2 changes: 1 addition & 1 deletion app/controllers/statuses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def embed
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
Expand Down

0 comments on commit 9bbec69

Please sign in to comment.