• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Browser console error

Scheduled Pinned Locked Moved Technical Support
2 Posts 2 Posters 278 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clouds
    wrote on last edited by clouds
    #1
    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;
    }
    }
    
    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    @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.css

    The error you are seeing happens because our core 404 handler is returning text/plain when it can't find the css file.

    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development