Keycloak 12.0.2 CSS issue on login page

Any chance one of you encounter this issue since 12.0.23 upgrade, it happens on login page

 Refused to apply style from 'https://xxxxx/auth/resources/nykwm/common/keycloak/web_modules/@fortawesome/fontawesome-free/css/icons/all.css' because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
1 Like

I see the same error. Assuming it has something to do with the misspelling of fortawesome?

Having the same issue, and it’s not a typo. FontAwesome belongs to the @fortawesome org - Font Awesome

A possible workaround in my case was to modify the docker image (the CSS file is not there, thus MIME type is an empty string):

RUN mkdir -p /opt/jboss/keycloak/themes/keycloak/common/resources/web_modules/@fortawesome/fontawesome-free/css/icons
RUN touch /opt/jboss/keycloak/themes/keycloak/common/resources/web_modules/@fortawesome/fontawesome-free/css/icons/all.css
1 Like

indeed the css fiel is not where it should be …
I changed the keycloak theme : themes/keycloak/login theme.propeties

the fontawesome used to be in web_modules and now it’s in node_modules

This appears to be a bug. Could somebody file? Thanks!

1 Like

Filed an issue: https://issues.redhat.com/browse/KEYCLOAK-17076

1 Like

Why… do we have to log in using that stupid redhat auth to see the issue?

5 Likes