Announcement

Collapse
No announcement yet.

NXfilter tomcat server returning css files as text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NXfilter tomcat server returning css files as text

    The Tomcat server bundled within nxfilter is serving css files as 'text/html' instead of 'text/css'. This leads to css not loading.

    Click image for larger version

Name:	image.png
Views:	158
Size:	31.5 KB
ID:	2561

    Click image for larger version

Name:	image.png
Views:	105
Size:	90.0 KB
ID:	2560

    I even tried updating and am currently running: nxfilter-4.6.7.9

  • #2
    Whch browser do you use?

    Comment


    • #3
      Your GUI not working? So far, we didn't have such a problem but it seems like there's something with our character encoding way to deal with multibytes characters. We will try to fix it.

      Comment


      • #4
        Issue is there for both chromium based and firefox.

        The default GUI or the Sandwatch one works because mainly the css is either added within the HTML or is being loaded from an external source over the web, eg:

        Click image for larger version  Name:	image.png Views:	0 Size:	7.2 KB ID:	2565

        A temp way is to set the page in Quirks mode :

        Click image for larger version  Name:	image.png Views:	0 Size:	16.4 KB ID:	2566

        But the Quirks mode only helps in css, js. The issue is still there for svg, etc.

        I'm trying to create my own frontend / GUI and I'm trying to keep the css, js, asset files separate. But the aforementioned issue hinders me from achieving that.

        Also found this while looking for this issue: Stackoverflow , it states with the new Tomcat versions the default Serverlet should not set / overwrite previously set content types.

        Thought it might help.

        Comment


        • #5
          We fixed it. Try v4.6.8.1.

          Comment


          • #6
            Works perfectly now, thanks a lot.

            Click image for larger version

Name:	image.png
Views:	85
Size:	86.1 KB
ID:	2573

            Comment

            Working...
            X