API Error Brawl Stars

Hello, I have created a request in Javascript that retrieves through the proxy “RoyalApi” the api of Brawl Stars. I want to get the specific data of a player. I encounter a strange problem, that when using the Google Developer Console the request works, but on VS Code the request encounters an error (see image).
Do you have any idea what’s wrong?