Skip to Content
0

Java Script for portal favorites in NW 7.5

Dec 04, 2017 at 01:16 PM

78

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Nick Rankin
Dec 07, 2017 at 04:09 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded