Url block problems with http authentication while using Chrome

Hi, this is regarding to url block problems with http authentication. I am running a php script on a webserver, which enables the user to write, read and delete files. The script can be enabled via http authentication e. g.
https://user:password@myexamplewebspace.org/com.php?type=read&key=data.txt
This is working fine while using Firefox, but won't do it's job while using Chrome. Background information: In the past, I was using http requests without authentication, which led to no problem while using Chrome. Feel free to ask for further details. Any help would be welcome. Greetings.

Use of the format "user:password" in the userinfo field is
deprecated...

You may experiment with the "Web services access"
untitled script pic - 2024-02-08T214736.296

@dardoro Thank you for the advice. I will try to make it work.

@dardoro Your advice was a good inspiration. I succeeded by putting all the code into one "JavaScript function" block.