[Bug 12239] New: Errors loading script under https in chrome
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12239 Bug ID: 12239 Summary: Errors loading script under https in chrome Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: martin.renvoize@ptfs-europe.com QA Contact: testopia@bugs.koha-community.org Chrome seems to be more strict when it comes to loading scripts than other browsers. It seems we're sending /opac-tmpl/bootstrap/lib/enquire.min.js and /opac-tmpl/bootstrap/js/script.js with a MIME type of text/plain when we should be sending it with type application/javascript. This causes warnings when running under https and the following error message to appear in the console: 'Resource interpreted as script but transferred with MIME type text/plain.' This relevant code is inside a modernizr block so I'm not sure how to proceed with a fix. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12239 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtompset@hotmail.com --- Comment #1 from M. Tompsett <mtompset@hotmail.com> --- Not that this is the best solution, but perhaps adding: AddType text/javascript .js in the appropriate apache configuration files would work? (http://stackoverflow.com/questions/3467404/chrome-says-resource-interpreted-...) I haven't tried it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12239 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |magnus@enger.priv.no --- Comment #2 from Magnus Enger <magnus@enger.priv.no> --- I could recreate the error messages in the Chromium console on my local dev install, which is not using https. No sign of any warnings in Firefox, though. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org