CORS Error in Javascript SDK

We are using back4app as our database and Microsoft azure for our front end application.

For linking front end application (published in Microsoft azure) to the database (Back4app) we have included master key,javascript key and App Id obtained from core settings screen of bak4app in app-component.ts of our front end application.

Application became unresponsive giving 504/ CORS origin error in console.

Please Help me out in clearing this issue
Thanks in advance

Can you please share the code that you are using to initialize the Parse SDK?

I’m getting the same error in my production app!
Initialization code:

Parse.initialize(“XXXXXXXXXXXX”, “XXXXXXXXXX”);
Parse.serverURL = “https://parseapi.back4app.com/”;

Is the cors error happening for all requests or for some specific ones?