mailman icon indicating copy to clipboard operation
mailman copied to clipboard

MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Open JohKa opened this issue 6 years ago • 3 comments

Hallo, ich benutzte Mailman mit Docker in einem Subfolder. Für die Weiterleitung nutze ich nginx.

Leider erhalte ich beim Aufruf von Mailman die folgende Fehlermeldung:

Refused to apply style from 'https://XXX.XY/mailman/static/css/main.27ff0ba0.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Das Dockerfile wurde mit der Eigenschaft: Subfolder gestartet und wurde auch in der .env bzw. bei NGINX so konfiguriert.

JohKa avatar Dec 18 '18 09:12 JohKa

Sieht so aus als würde nginx die index.html auslieferen. Kannst du mal die nginx config hier posten?

phiilu avatar Feb 10 '19 15:02 phiilu

server {

 listen 443 ssl http2;
        server_name XXX.YY;

        ssl_certificate /etc/letsencrypt/live/XXX.YY/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/XXX.YY/privkey.pem;
        ssl_trusted_certificate /etc/letsencrypt/live/XXX.YY/chain.pem;

        include snippets/ssl.conf;
        include snippets/letsencrypt.conf;
        include snippets/php-fpm.conf;

        #return 301 https://XXX.YY$request_uri;
        index index.php index.html index.htm index.nginx-debian.html;
        root /var/www/html;

        add_header X-Content-Type-Options nosniff;
location /mailman {
                proxy_pass       http://127.0.0.1:4000/;
                proxy_set_header Host      $host;
                proxy_set_header X-Real-IP $remote_addr;
#               proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
}

JohKa avatar Feb 11 '19 06:02 JohKa

Habe exakt dasselbe Problem. Selbst mit der vorgeschlagenen Minimaleinstellung beim nginx.

t0rkh avatar May 17 '19 14:05 t0rkh