B4J Question [WebApp] Websocket and MIME-Type

Kiffi

Well-Known Member
Licensed User
Longtime User
Hello,

i noticed, that my Chrome-Console reported this one:

Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://localhost:51234/libraries/w2ui/w2ui-1.3.2.min.css". index.html:12

Resource interpreted as Script but transferred with MIME type text/plain: "http://localhost:51234/b4j_ws.js". index.html:16

Resource interpreted as Script but transferred with MIME type text/plain: "http://localhost:51234/libraries/w2ui/w2ui-1.3.2.min.js". index.html:13

I have ignored this, because in Chrome (and Firefox) everything seems to be correct.

But Internet Explorer V11 refuses loading the CSS-File because of MIME-Typeconflict (SEC7113). Therefore the page is not displayed correctly

Is there a way to set the MIME-Type?

Thanks in advance & Greetings ... Peter
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is fixed for the next version.

You can try it online: http://basic4ppc.com:51042/dbutils/index.html (make sure to hard refresh the page).

You can fix it now. Copy the attached file (mime.properties) and put it inside jetty_b4j.jar. It should be located in: org\eclipse\jetty\http\
 

Attachments

  • mime.zip
    1.5 KB · Views: 274
Upvote 0
Top