It looks like it was a problem in an update of Edge, as now all browsers in all computers are working again with the exactly same source code. I think a later update fixed the issue. The version 134.0.3124.19 does not show the problem anymore.