Angular project cannot get by client net::ERR_HTTP2_PROTOCOL_ERROR 200

Issue

This problem occurred spontaneously without any changes to the code.
I run this app on localhost.

enter image description here

[enter image description here]2]

Solution

You can see some discussion on similar topic here.

Ther are couple different solutions, but what worked for me, was replacing all requests for css and js, to use http rather than default https:

So for example, this:

<link rel="stylesheet" href="http://localhost/css/site.css">

instead of this:

<link rel="stylesheet" href="~/css/site.css">

Answered By – infografnet

Answer Checked By – Senaida (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.