From be8e7fdfb66f0344200c84073525133cefeed3ab Mon Sep 17 00:00:00 2001 From: sahil839 Date: Fri, 16 Jul 2021 14:45:47 +0530 Subject: [PATCH] upload_widget: Use img tag for tail-spin.svg instead of object tag. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We use img tag for showing the loading spinner in image_upload_widget instead of object tag because using object tag gives the following error "Refused to display 'https://chat.zulip.org/' in a frame because it set 'X-Frame-Options' to 'deny'." in console. As mentioned by Anders in czo, this is probably because we’re loading the SVG using an tag as if it’s totally-not-an-IE3-ActiveX- control. Discussed in #issues > loading tail-spin.svg denied by X-Frame-Options. --- static/templates/settings/image_upload_widget.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/templates/settings/image_upload_widget.hbs b/static/templates/settings/image_upload_widget.hbs index bf5f841dbd..30f175ce51 100644 --- a/static/templates/settings/image_upload_widget.hbs +++ b/static/templates/settings/image_upload_widget.hbs @@ -11,7 +11,7 @@ {{ upload_text }} - +