Skip to Content
avatar image
Former Member

Java Script for portal favorites in NW 7.5

Hi,

We have implementation for Add to Portal Favorites in 7.0 version using Java script. After upgrade to 7.5, its not working.

We were using this standard script for portal favorites.

var url = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.remote?ServiceType=PortalFavorites&"; url += ("NavigationTarget=" + getEscapedTargetUrl(target)); url += ("&Title=" + encodeURIComponent(title)); url += ("&Mode=" + mode);

Can anyone suggest, how it has to be done in portal 7.5 as we are getting the error as below:

XSRF Token incorrect or missing.

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

i think after 7.3, the java script is changed. Please suggest , where to find the new changes. Couldn't find it in the documentation.

Regards

Sumit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 07, 2017 at 04:09 PM

    Hi Sumit,

    Please take a look at the below documentation:

    https://help.sap.com/viewer/f2f3f4b4543a4803b9023e8c31f1e72a/7.5.6/en-US/50ace59ddc51427da09bd673dedb89a8.html

    Best regards,

    Nick

    Add comment
    10|10000 characters needed characters exceeded