'_xsrf' argument missing from POST while calling INFO - GET METHOD REST API

Bug description

Hi Team,

I have set up JupyterHub using the below latest docker image command:

docker run -p 8000:8000 -d --name jupyterhub jupyterhub/jupyterhub jupyterhub
While calling the get Info GET method API using the Postman tool getting the below error:

API Endpoint: http://localhost:8000/hub/api/info

Error Response:

    "status": 403,
    "message": "'_xsrf' argument missing from POST"

Additional Logs:

2023-06-23 12:24:21 [W 2023-06-23 06:54:21.430 JupyterHub web:1869] 403 GET /hub/api/info (::ffff: ‘_xsrf’ argument missing from POST

Can you please let me know which token is required here and how to call the other API in the case of GET and POST API methods?

Please let me know if you need more information.

The error message is misleading, and was due to missing credentials. The error message will be improved in the next release of JupyterHub