Skip to content

Commit

Permalink
fix: Fix Portlet preloading URL and Crossorigin - Meeds-io/meeds#2483
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
boubaker committed Oct 11, 2024
1 parent b74dde7 commit 7db1c4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
def portletId = portlets.get(i).getId();
if (portletId != null) {
%>
<link rel="prefetch" as="fetch" type="text/html" href="<%=rcontext.getRequest().getRequestURI()%>?maximizedPortletId<%=portletId%>&showMaxWindow=true&hideSharedLayout=true&maximizedPortletMode=VIEW" crossorigin><%
<link rel="preload" as="fetch" href="<%=rcontext.getRequest().getRequestURI()%>?maximizedPortletId=<%=portletId%>&showMaxWindow=true&hideSharedLayout=true&maximizedPortletMode=VIEW" crossorigin="use-credentials"><%
}
}
}
Expand Down

0 comments on commit 7db1c4a

Please sign in to comment.