Note: Starting with vSphere 7.0, cookie based authentication using vSphere REST APIs (vAPIs) are being deprecated. Cookie based methods will continue to work in 7.0 but will be removed after 2 major releases (including 7.0) according to the standard deprecation policy.
To workaround this issue:
POST /rest/com/vmware/cis/session HTTP/1.1
vmware-use-header-authn: true
200 OK
{
"value": "b00db39f948d13ea1e59b4d6fce56389"
}
GET /rest/com/vmware/cis/tagging/category HTTP/1.1
vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389