Create new App in EU but JS API is not working

I created a new App in the EU (App ID: A0998A37-82D6-2332-FFB8-842AB50EC400).

I already created a Node.js with Ionic/Angular that accessed an Backendless App in the US without issues.

Now assessing the app in the EU ein get the error: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Run the API URl in a browser gets me teh error: {“code”:2002,“message”:“Unable to identify the application. Make sure application ID and API key are correct”,“errorData”:{}}

I veryfied the application ID and the API Key. They are correct.

Hello @Uwe_Krobot

We will be happy to assist you. I need to ask you a few more questions so I can understand the problem better.
What do you mean:

?

Hi @Uwe_Krobot,

If your application is hosted in EU, please make sure to add the following line of code in your app:

Backendless.serverURL( "https://eu-api.backendless.com" );

We’re updating API documentation to reflect that.

Regards,
Mark

serverURL is a property not a function.

This worked:
Backendless.serverURL = ‘https://eu-api.backendless.com’;

1 Like