I have configured keycloak in my production server and it is showing a mixed content error as follows,
Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure resource '<URL>'. This request has been blocked; the content must be served over HTTPS.
In order to fix this issue, I added --hostname
and --hostname-admin
values in environment variable. After adding hostname, it was fixed.
But when i am adding hostname, i am not able to use multiple URL for token generation. It always returns same issuer (that we added in the hostname). We are always verifying issuer at the client side with the client URL which might random.
How can i fix this issue without adding hostname in the environment variable, so that i can use any URL for communication with Keycloak?