Menu

#32 phptest.php served as text/html blocks phpvirtualbox from loading

4.3-2
closed
None
5
2014-12-16
2014-10-17
No

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.

Discussion

  • Ian Moore

    Ian Moore - 2014-12-11
    • status: open --> accepted
     
  • Ian Moore

    Ian Moore - 2014-12-11

    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.

     
  • Ian Moore

    Ian Moore - 2014-12-11
    • Group: v1.0_(example) --> 4.3-2
     
  • Ian Moore

    Ian Moore - 2014-12-16

    Added / fixed in 4.3-2

     
  • Ian Moore

    Ian Moore - 2014-12-16
    • status: accepted --> closed
    • assigned_to: Ian Moore
     

Log in to post a comment.