Skip to content

Commit

Permalink
Remove invalid X-Frame-Options: ALLOWALL (mastodon#25070)
Browse files Browse the repository at this point in the history
(cherry picked from commit 72d96bf)
  • Loading branch information
ClearlyClaire authored and F-Finene committed Jul 6, 2023
1 parent 3edb597 commit aa0bdd3
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 aa0bdd3

Please sign in to comment.