giterlizzi / dokuwiki-plugin-datatables

Add DataTables support to DokuWiki
GNU General Public License v2.0
10 stars 10 forks source link

Wrong mime types #60

Open TdAe opened 3 years ago

TdAe commented 3 years ago

Hi,

I installed the datatables plugin (version 2020-06-14) on dokuwiki Release 2020-07-29 "Hogfather" and the bootstrap3 Template v2021-03-11 stable.

Tables marked as are shown as common tables and the web console of Firefox shows this errors and warnings:

The stylesheet https://SITE/lib/plugins/datatables/assets/datatables.net-fixedcolumns-dt/css/fixedColumns.dataTables.min.css was not loaded because its MIME type, "text/html", is not "text/css". doku.php
The stylesheet https://SITE/lib/plugins/datatables/assets/datatables.net-fixedheader-dt/css/fixedHeader.dataTables.min.css was not loaded because its MIME type, "text/html", is not "text/css". doku.php
The stylesheet https://SITE/lib/plugins/datatables/assets/datatables.net-bs/css/dataTables.bootstrap.min.css was not loaded because its MIME type, "text/html", is not "text/css". doku.php
The script from “https://SITE/lib/plugins/datatables/assets/datatables.net/js/jquery.dataTables.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/datatables.net-fixedcolumns-dt/js/fixedColumns.dataTables.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/datatables.net-fixedheader-dt/js/fixedHeader.dataTables.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/datatables.net-buttons/js/dataTables.buttons.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/datatables.net-buttons/js/buttons.print.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/jszip/dist/jszip.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/pdfmake/build/pdfmake.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/datatables.net-buttons/js/buttons.html5.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/pdfmake/build/vfs_fonts.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/datatables.net-bs/js/dataTables.bootstrap.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
The script from “https://SITE/lib/plugins/datatables/assets/datatables.net-buttons-bs/js/buttons.bootstrap.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
doku.php
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. doku.php
Uncaught SyntaxError: expected expression, got '<'
jquery.dataTables.min.js:1
Uncaught SyntaxError: expected expression, got '<'
fixedHeader.dataTables.min.js:1
Uncaught SyntaxError: expected expression, got '<'
fixedColumns.dataTables.min.js:1
Uncaught SyntaxError: expected expression, got '<'
dataTables.buttons.min.js:1
Uncaught SyntaxError: expected expression, got '<'
buttons.html5.min.js:1
Uncaught SyntaxError: expected expression, got '<'
buttons.print.min.js:1
Uncaught SyntaxError: expected expression, got '<'
jszip.min.js:1
Uncaught SyntaxError: expected expression, got '<'
pdfmake.min.js:1
Uncaught SyntaxError: expected expression, got '<'
vfs_fonts.js:1
Uncaught SyntaxError: expected expression, got '<'
dataTables.bootstrap.min.js:1
Uncaught SyntaxError: expected expression, got '<'
buttons.bootstrap.min.js:1

The "X-Content-Type-Options: nosniff" header is not set on the server.