Browser console error
-
Refused to apply style from 'https://domain.ltd/plugins/nodebb-plugin-markdown/styles/railscasts.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled. /plugins/nodebb-plugin-markdown/styles/railscasts.css:1 Failed to load resource: the server responded with a status of 404 () Refused to apply style from 'https://domain.ltd/plugins/nodebb-plugin-markdown/styles/railscasts.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Nginx: 1.18.0
nodebb.conf:
server { listen 80; listen [::]:80; root /home/node/nodebb; server_name www.domain.ltd domain.ltd; return 301 https://domain.ltd$request_uri; } server { listen 443 ssl http2; listen [::]:443 ssl http2; root /home/node/nodebb; ssl_certificate /etc/ssl/kurcert.pem; ssl_certificate_key /etc/ssl/kurkey.pem; ssl_client_certificate /etc/ssl/cloudflare.crt; ssl_verify_client on; server_name domain.ltd; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; return 301 https://domain.ltd$request_uri; } server { listen 443 ssl http2; listen [::]:443 ssl http2; root /home/node/nodebb; ssl_certificate /etc/ssl/kurcert.pem; ssl_certificate_key /etc/ssl/kurkey.pem; ssl_client_certificate /etc/ssl/cloudflare.crt; ssl_verify_client on; server_name domain.ltd; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } types { application/javascript jst js; text/css css; } }
-
@flarum-türkiye said in Browser console error:
https://domain.ltd/plugins/nodebb-plugin-markdown/styles/railscasts.css
Seems like the file is missing on your installation, did you run
./nodebb build
and try again? That url should return the correct css ie https://community.nodebb.org/plugins/nodebb-plugin-markdown/styles/railscasts.cssThe error you are seeing happens because our core 404 handler is returning text/plain when it can't find the css file.
Copyright © 2024 NodeBB | Contributors