Load javascript from page after basic authorization

Hi,

I want to test a page which requires Basic Authentication. It succesfully loads using

WebUI.authenticate(G.domain_url, 'kosit', G.password, 10)

however then I get an Javascript error

JavaScript error: https://kosit:password@mytestdomain.com/static/js/application.1b88065e.chunk.js, line 1: TypeError: /api/status/info.json is an url with embedded credentials.

How to deal with situation