about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-12-23 02:16:35 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-12-23 02:16:35 +0100
commite25947db4a44cd50fa1daa36d5031a950327b646 (patch)
tree82e146ce7bb5297d8e1c8bc745c569f9170aa7e1 /app/javascript
parentbb62827c16dbf35c70da2dc801f602df3c76fcca (diff)
Sanitize and sandbox toot embeds (#9552)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/features/ui/components/embed_modal.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/ui/components/embed_modal.js b/app/javascript/mastodon/features/ui/components/embed_modal.js
index 2afb6f3d7..982781db0 100644
--- a/app/javascript/mastodon/features/ui/components/embed_modal.js
+++ b/app/javascript/mastodon/features/ui/components/embed_modal.js
@@ -77,6 +77,7 @@ class EmbedModal extends ImmutablePureComponent {
             className='embed-modal__iframe'
             frameBorder='0'
             ref={this.setIframeRef}
+            sandbox='allow-same-origin'
             title='preview'
           />
         </div>