I've experianced the same error. In my case replacing "https" to simple "http" in my URL -- solved my problem (since my "localhost:4200" angular server was not supported the secured protocol)