Strict MIME Type Checking Issue

From v1.45.2 onwards, SubscriptionBoss javascripts loaded into Infusionsoft forms have their the content type explicitly set as “application/javascript”.

In previous releases, the content type was not assigned and was defaulting to “text/html”. This caused a problem if strict MIME type checking was enabled.

One user reported SubscriptionBoss scripts not loading on Infusionsoft forms with the error:

Refused to execute script from … because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

This seems to be influenced by the X-Frame-Options setting on the web server. I was not able to reproduce the problem however the setting of the content type seems a reasonable initial stab at a fix.

While the content type and MIME type are not exactly the same thing, this change may be enough to stop the MIME type check failing. I will update here when the user that had the problem reports back after installing the new release.

Leave a Reply