Hello all,
I think I have a weird issue. As mentioned in one of the threads on the site, I am using the calling
to login and get the security token. Then I am calling another function that needs the cpsess token in the URL.
The above scenario works well in Postman and I have tested it numerous time. However, when I try to do the same from my server(node.js), it fails. I am getting a security token successfully, but the second step fails. When I use the security token I get from server to test in Postman, it fails as well. I tried vice versa - I got the security token from a successful call in Postman and used it in my server. That fails as well.
I am not sure where I am missing a trick. Has anybody faced this? Any ideas on what to do now? I am stuck at a very interesting point.
Thanks in advance for the help
Regards,
Monish
I think I have a weird issue. As mentioned in one of the threads on the site, I am using the calling
Code:
https://cPanelURL:2083/login/?login_only=1&user=username&pass=password
The above scenario works well in Postman and I have tested it numerous time. However, when I try to do the same from my server(node.js), it fails. I am getting a security token successfully, but the second step fails. When I use the security token I get from server to test in Postman, it fails as well. I tried vice versa - I got the security token from a successful call in Postman and used it in my server. That fails as well.
I am not sure where I am missing a trick. Has anybody faced this? Any ideas on what to do now? I am stuck at a very interesting point.
Thanks in advance for the help
Regards,
Monish