From 484c9a67c20cc8f58452a61dcba84087988b8832 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Tue, 22 Jun 2021 12:30:27 +0530 Subject: [PATCH] Added crossorigin attribute to Portal script no refs - without crossorigin=anonymous attribute, browsers obfuscate error messages from external scripts, which makes error tracking with sentry impossible - with crossorigin attribute, portal script needs to be served with cors header or browsers will block it - unpkg already serves the script with `access-control-allow-origin: *` --- core/frontend/helpers/ghost_head.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/frontend/helpers/ghost_head.js b/core/frontend/helpers/ghost_head.js index 3f76efab72..6ea5ea1c32 100644 --- a/core/frontend/helpers/ghost_head.js +++ b/core/frontend/helpers/ghost_head.js @@ -46,7 +46,7 @@ function getMembersHelper(data) { const stripeConnectAccountId = settingsCache.get('stripe_connect_account_id'); const colorString = _.has(data, 'site._preview') && data.site.accent_color ? ` data-accent-color="${data.site.accent_color}"` : ''; const portalUrl = config.get('portal:url'); - let membersHelper = ``; + let membersHelper = ``; membersHelper += (``); if ((!!stripeDirectSecretKey && !!stripeDirectPublishableKey) || !!stripeConnectAccountId) { membersHelper += '';