From 8966a8201b3a911476ece5b9cff6d7726911b97f Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Fri, 3 Apr 2020 21:58:52 +0000 Subject: [PATCH] fix: removed crossorigin attribute on custom css tags (#2919) Co-authored-by: Kim Gardner --- src/core/server/app/views/client.html | 2 +- src/core/server/app/views/macros.html | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/core/server/app/views/client.html b/src/core/server/app/views/client.html index dc2b10781..0e80660d4 100644 --- a/src/core/server/app/views/client.html +++ b/src/core/server/app/views/client.html @@ -11,7 +11,7 @@ {% endfor %} {% endif %} {% if enableCustomCSS and tenant and tenant.customCSSURL %} - {{ macros.preload(tenant.customCSSURL, "style", crossorigin = true) }} + {{ macros.preload(tenant.customCSSURL, "style") }} {% endif %} {% if entrypoint.js %} {% for asset in entrypoint.js %} diff --git a/src/core/server/app/views/macros.html b/src/core/server/app/views/macros.html index 2a9349f45..01fd9636b 100644 --- a/src/core/server/app/views/macros.html +++ b/src/core/server/app/views/macros.html @@ -1,9 +1,5 @@ -{% macro preload(src, htmlAs, prefix = "", crossorigin = false) %} - {% if crossorigin %} - - {% else %} - - {% endif %} +{% macro preload(src, htmlAs, prefix = "") %} + {% endmacro %} {% macro css(src, integrity = "", prefix = "") %}