Hey Frederic,
how are the requests sent? The error message does not seem to be issued by matomo, but probably from a client side http library like superagent.
If that’s the case, then this might be the solution: https://github.com/ladjs/superagent/issues/1479