Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

Commit 580c1a9

Browse files
waelghannemboubaker
authored andcommitted
PLF-8376 pass the request as a parameter to getToken method (#386) (#586)
1 parent 7672fc9 commit 580c1a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extension/webapp/src/main/webapp/groovy/portal/webui/workspace/UIPortalApplication.gtmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
eXo.env.portal.spaceGroup = "<%=SpaceUtils.getSpaceByContext() == null ? "" : SpaceUtils.getSpaceByContext().getGroupId().replace("/spaces/", "")%>" ;
204204
eXo.env.portal.profileOwner = "<%=Utils.getOwnerRemoteId()%>" ;
205205

206-
eXo.env.portal.csrfToken = "<%=CSRFTokenUtil.getToken()%>";
206+
eXo.env.portal.csrfToken = "<%=CSRFTokenUtil.getToken(((PortalRequestContext)rcontext).getRequest())%>";
207207
</script>
208208
<%
209209
def headerElements = rcontext.getExtraMarkupHeadersAsStrings();

0 commit comments

Comments
 (0)