phptest.php served as text/html blocks phpvirtualbox from loading
A web-based front-end to VirtualBox written in PHP
Brought to you by:
imoore76
I serve by default everything as text/html .... so chrome yells this:
Resource interpreted as Script but transferred with MIME type text/html: "https://192.168.1.95/phpvirtualbox/js/phptest.php".
Refused to execute script from 'https://192.168.1.95/phpvirtualbox/js/phptest.php' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Even though phptest.php is serving var __vboxPHP = true;
Adding these lines to js/phptest.php fixed the problem.
The problem is that if I add that in and PHP isn't being parsed, it will halt all javascript processing and no error will display. I'm just going to remove the test. It was kind of a hack anyway.
Added / fixed in 4.3-2