. Advertisement .
..3..
. Advertisement .
..4..
I get the error: err_invalid_http_response when I try to run the program below:
Request URL: http://localhost:12346/api/XXXX
Request Method: OPTIONS
Status Code: 204 No Content
Remote Address: [::1]:12346
Referrer Policy: no-referrer-when-downgrade
The error appears the system notifies as follows:
Request URL: http://localhost:12346/api/XXXX
Referrer Policy: no-referrer-when-downgrade
I tried to solve it with another sample. I got the reference in the community forum, but it still returned an invalid result. If someone knows the solution, please give me the support. Thanks!
The cause: this error could be due to ASP NET Core 2.2. There’s a problem registered on GitHub https://github.com/aspnet/AspNetCore/issues/4398
Solution: The solution is to add the following code in your
startup.cs
code.