Unescape cookie value before it gets forwarded as header

We have an application that returns XSRF-TOKEN as a cookie and expects that all "write" requests have a x-xsrf-token so it allows the request.

The issue we are facing is: Cookie value is escaped (example: "abc%3D%3D") and it expects the x-xsrf-token header to be unescaped (example: "abc==").

Is there any way to unescape(COOKIE_XSRF-TOKEN) before it gets added as a header?

Hey Andre!

You can use {{decodeURIComponent('abc%3D%3D')}} to unescape the value.

Hope this helps!