cancel
Showing results for 
Search instead for 
Did you mean: 

Java Script for portal favorites in NW 7.5

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

nickrankin
Contributor
0 Kudos

Hi Sumit,

Please take a look at the below documentation:

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

Best regards,

Nick