Application Name: Bahmni Version Number: 1.0.0-lite.
Question: Hi,
I have developed a front end for testing OpenMRS APIs. I’m encountering an issue while creating a session with the OpenMRS API. When I send a POST request for authentication (/openmrs/ws/rest/v1/session) using Basic Auth, I receive a response indicating that authentication was successful ("authenticated": true
). However, I am unable to retrieve the session ID cookie (JSESSIONID
) to maintain the session for subsequent API calls from my frontend. The cookie is marked as HttpOnly
, which prevents it from being accessed via JavaScript on the frontend.
Could you please provide guidance on how to handle this HttpOnly
cookie for creating session?
Thank you!
.**