From f1ca807c391dd8c6550d0779736b2ad1e853d3cd Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Fri, 11 Oct 2024 11:36:32 +0100 Subject: [PATCH] fix: Fix Portlet preloading URL and Crossorigin - Meeds-io/meeds#2483 (#234) Prior to this change, the URL to preload when displaying the page is different from the loaded fetch call using JS services of the page layout. In addition, the crossorigin attribute has to be the same as the fetch call 'credentials' attribute which is with value 'include'. Resolves Meeds-io/meeds#2483 --- .../webapp/groovy/portal/webui/container/UIPageLayout.gtmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout-webapp/src/main/webapp/groovy/portal/webui/container/UIPageLayout.gtmpl b/layout-webapp/src/main/webapp/groovy/portal/webui/container/UIPageLayout.gtmpl index f541ae0d8..106dc9956 100644 --- a/layout-webapp/src/main/webapp/groovy/portal/webui/container/UIPageLayout.gtmpl +++ b/layout-webapp/src/main/webapp/groovy/portal/webui/container/UIPageLayout.gtmpl @@ -18,7 +18,7 @@ def portletId = portlets.get(i).getId(); if (portletId != null) { %> - <% + <% } } }