I am testing the sessions REST API using curl and postman and ran into an issue with regards to retrieving the current session .
I am using the following command and am getting the resource not found error
curl -v -X GET
-H “Accept: application/json”
-H “Cookie: JSESSIONID=527194EC69CEEDC6259E7E892378EAB9; Path=/; Secure; HttpOnly”
“https://dev-757208.oktapreview.com/api/v1/sessions/me”
could I ask you please for more information how can I get the ‘sid’ cookie? I’m using the code from this answer, but I’m unable to read any cookie besides the ones available from the XmlHttpRequest.getAllResponseHeaders().
I’m trying to get this information in order to be able to use REST Client on the Server side for the Okta Session Management.
I’d greatly appreciate your answer on my question,
Many thanks and kind regards,
Rama.