Skip to Content
avatar image
Former Member

XSRF token error after upgrade to 7.5


We have recently upgraded to portal 7.5. We have a scenario , where the user can save his favourites in the portal. We have a custom application where we add the favourites in KM. It was working fine in previous versions but now we are facing issue as "

XSRF Token incorrect or missing.

No xsrf token parameter is found in the request! request[com.sapportals.wcm.portal.util.PortalServletRequestWrapper@42d72514]."

Below is the code we are using:

function AddToPortalFavorites(target , title, mode, message)




var obj = EPCM.getSAPTop().gHistoryFrameworkObj.GetActiveTrackingEntryValue();

var context = obj.context;

if(! target)


target = obj.getUrl();

title = GetUnescapedTitle(obj.title);


var url = "/irj/servlet/prt/portal/prtroot/";

url += ("NavigationTarget=" + getEscapedTargetUrl(target));

url += ("&Title=" + encodeURIComponent(title));

url += ("&Mode=" + mode);

if (context != null && context.length > 0)

url = url + "&Context="+encodeURI(context);

var favIFrame = document.getElementById("favoritesIframe");

if(! favIFrame)


var favIFrame = document.createElement("IFRAME"); = "hidden";


favIFrame.height=0; = "favoritesIframe";

if(EPCM.getUAType() == EPCM.MSIE)//using IE event model

favIFrame.attachEvent("onload" , favoritesFinished);

else// using W3C DOM:

favIFrame.onload = favoritesFinished;


favIFrame = document.body.appendChild(favIFrame);


favIFrame.src = url;





How to fix this issue?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 30, 2018 at 11:34 AM


    Since the issue is seen after the upgrade to portal 7.5, I would suggest you to refer the below KBA first.

    2503291 - Issues after upgrading Enterprise Portal to 7.3x / 7.4 / 7.5

    Additionally refer the troubleshooting guide for the steps/checks after SAP Enterprise Portal Upgrade


    Santarshi Samanta

    Add comment
    10|10000 characters needed characters exceeded