Error d"MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff)" on deploy Django project with gunicorn and Apache

I'm trying to deploy a Django project with Gunicorn and Apache. The gunicorn is configured and working --> no problem on this side

The problem is with the statics files, i configure an apache conf :

<VirtualHost *:80>
    ProxyPass /static/ !
    ProxyPass / http://0.0.0.0:8002/
    ProxyPassReverse / http://0.0.0.0:8002/

    Alias /static/ /opt/livraison/apache/DEV

    <Directory /opt/livraison/apache/DEV>
        Require all granted
    </Directory>
    # Possible values for LogLevel : debug, info, notice, warn, error, crit, alert, emerg.
    LogLevel info
    ErrorLog /logs/PASPE_DEV/apache_error.log
    CustomLog "/logs/PASPE_DEV/access_log/apache.log" "%h %l %u %t \"%r\" %>s %b"
</VirtualHost>

And it seem that my static files are redirect to gunicorn so on port 8002 and not 80. and i got this error : adresse « http://server:8002/static/SuiviInstall/css/home.css » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff)

How can i handle this error ?

Вернуться на верх