I'm having trouble with a 3rd-party javascript game that is installed on my site, where the content-type response header being returned is application/json
rather than application/javascript
for a resource being requested as jsonp. This doesn't seem to be an issue in Safari or Firefox, but it's throwing an error in Chrome.
The error I'm getting in the console is Refused to execute script from 'http://example.come/js/game/data/game-data.json' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
Based on one recommended configuration, I've tried adding the following to an .htaccess
file within the game root directory, but it doesn't seem to be having any effect:
<IfModule mod_mime.c>
AddType application/javascript jsonp
</IfModule>
I've confirmed that LoadModule mime_module modules/mod_mime.so
is enabled in my httd.conf
file. Are there other settings I need to try?