Express | CORS Error: “requests are only supported for protocol schemes: http…”

In your Express backend, You will probably get this error, If your baseURL is something like this,
this._baseUrl = 'localhost:4200/';

The fix is simple! Add http:// to baseURL

this._baseUrl = 'http://localhost:4200/';

Leave a Reply

(*) Required, Your email will not be published