After additional testing, it seems that the issue lies in an application run from a docker container. I have tested with the same project run as a docker container and in IIS. With docker, the request ended with 401, with IIS it was 200 and the data was correctly returned.
The issue was isolated to the Linux Docker and all APIs return 401 (both public and private after login). It doesn’t seem to be related to nginx, direct requests to Kestrel also return 401, logging on level DEBUG doesn’t return any data.