codecentric / helm-charts

A curated set of Helm charts brought to you by codecentric
Apache License 2.0
614 stars 602 forks source link

Keycloak 25.0.0 codecentric helm charts - Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure resource '<URL>'. #786

Open ajmalkhalil opened 1 month ago

ajmalkhalil commented 1 month ago

I have deployed Keycloak using the Codecentric Helm charts versions 2.4.1, 2.4.2, and 2.4.3, but none of these versions are accessible. When attempting to access Keycloak via the Ingress URL, I'm encountering the following error in the browser console: ERROR: Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure resource ''. This request has been blocked; the content must be served over HTTPS.

I'm unsure why this issue is occurring. I have attempted to resolve it by configuring the following environment variables in my Helm charts:

My startup commands are configured as:

command:

and the environment variables are set as

extraEnv: |

've searched for other solutions, but they don't seem to apply to this version of Keycloak. Any assistance with resolving this issue would be greatly appreciated. Thank you!

skripted-io commented 1 month ago

I had the same issue when using KC behind an AWS ALB. This document helped me https://www.keycloak.org/server/reverseproxy

      - name: KC_PROXY_HEADERS
        value: "xforwarded"
ajmalkhalil commented 1 month ago

Thank you man, it helped