Angular - Keycloak ERR_INVALID_HTTP_RESPONSE

Hello,
I am trying authenticate a frontend angular application through keycloak, both keycloak server and the application are located on amazon. When serving the application instead of keycloak login page I receive ERR_INVALID_HTTP_RESPONSE error (The character encoding of the plain text document was not declared…etc). Any thoughts on solving this issue?
Thank you!

Are you using a custom theme? If that’s the case make sure it’s a valid HTML page and contains the correct meta tags.

Indeed, thank you for the reply! I had to add the following tags to index.html:

meta content=“text/html;charset=utf-8” http-equiv=“Content-Type”
meta content=“utf-8” http-equiv=“encoding”

It was strange though, that I couldn’t reproduce the error locally.