]> git.p6c8.net - jirafeau_mojo42.git/commit
[BUGFIX] Deliver JavaScript with correct MIME type 18/head
authorDan Untenzu <untenzu@webit.de>
Thu, 12 Jan 2017 15:28:47 +0000 (16:28 +0100)
committerDan Untenzu <untenzu@webit.de>
Thu, 12 Jan 2017 15:28:47 +0000 (16:28 +0100)
commit26d3657f83ba96b080c9cb0a242ee8b2d8fc1fe1
tree847be05b518fd0612fc5b3d8849f7a80fdadd5a6
parent9573b04ea127591445a2e8c60650b01db352fa97
[BUGFIX] Deliver JavaScript with correct MIME type

The JavaScript lib is generated by a PHP file. This
file will be blocked in browsers, if the server has the
security option "X-Content-Type-Options: nosniff" set.

Set the correct MIME type (text/javascript) in the header
to avoid this behaviour.

Refs #84
lib/functions.js.php

patrick-canterino.de