Your session has expired when directly logging into a locally started API Server

When I start the "ImxClient.exe run-apiserver -B'" and login: http://localhost:8182
The following is displayed: Your session has expired. Reload this page and log in again. [57002006]
Indirectly via Angular (http://localhost:4200/) it all works fine (clientUrl: 'http://localhost:8182',)

I there a way to make directly logging into a locally started API Server work?

This post contains a work-around, but also ends with the same question I have.
www.oneidentity.com/.../not-able-to-log-into-angular-development-environment-after-cu2

Thank you,
Niels