Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix CSP / X-Frame-Options for media embeds #9558

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

jomo
Copy link
Contributor

@jomo jomo commented Dec 18, 2018

Currently media is prevented from being embedded on external sites (example). This seems to be an oversight from #8957.

https://github.com/tootsuite/mastodon/blob/cb2435aaf5679a48c9e3867e0565dcca87cd6f2b/app/controllers/statuses_controller.rb#L22-L24

The code is basically borrowed from statuses_controller.rb and now being added to media_controller.rb.

@jomo jomo changed the title allow iframing media embed view from external sites fix CSP / X-Frame-Options for media embeds Dec 18, 2018
@Gargron Gargron merged commit 2c1a6f7 into mastodon:master Dec 18, 2018
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants