Include the 'X-userToken':window.g_ck in the header of your REST call. How to include this in Java?

srirampappagudi
Tera Expert

Include the 'X-userToken':window.g_ck   in the header of your REST call. How to include this in Java?

2 REPLIES 2

kenappell
Kilo Guru

Take a look at this post:


Re: REST Authentication in Angular CMS


Hi Ken,



I tries in Java with the below code but it does not work.



httpget.setHeader("X-UserToken", "window.g_ck");



I get the 401 error.



Thank you,


Sriram.