Modsecurity WAF and NextCloud

Hey Guys, I’m running my nextcloud on a Raspiberry Pi. I also have ModSecurity enabled running in default configuration with the following changes:

setvar:‘tx.allowed_http_versions=HTTP/1.1 HTTP/2.0’, \

setvar:‘tx.allowed_methods=GET HEAD POST OPTIONS PROPFIND’

Besides this - I’ve added - to etc/apache2/apache2.conf

SecServerSignature " "

The problem I am facing is that after the WAF is turned, the page does not render correctly.

Here is error I see in the browser console:

Refused to apply style from ‘http://IP/nextcloud/index.php/login’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Can someone help me with this?

Please note that I’m currently hosting on an IP (example