CORS Error: “requests are only supported for protocol schemes: http…” etc
问题 I am trying to a simple application. I have an Express backend which, returns a JSON string when visited at localhost:4201/ticker . When I run the server and, make a request to this link from my Angular Service over http , I get the following error: XMLHttpRequest cannot load localhost:4201/ticker. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. I read the following article: Understanding and Using CORS and, as stated, used the cors