Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to remove partial values in "set-cookie" in response headers

Hi,

I tried service callout policy and assign message policy to fetch cookie and CSRF token .And assign the both in headers using assign message policy. when I am assigning cookie in headers through assign message policy unnecessary values are there so that we are getting error as CSRF token validation failed.

Example:  cookie: sap-user context=sap-client=20; path=/ SAP_SESSIONID_D5_20=c_BbvQ_eMAYW2ixyZy9BZRNUbchHsrH8AUFasPzY%3d; path=/

I need to remove "path=/" words from overall cookie. How to remove that using JavaScript

@akoo @anilsr @dchiesa1 Could you please help?

0 1 576
1 REPLY 1