Support-Forum

jDownloads for Joomla 3.x => jDownloads 3.9 => Bugs => Topic started by: rikoooo on 25.06.2021 12:33:27

Title: Strict MIME type error [fixed in 3.9.8]
Post by: rikoooo on 25.06.2021 12:33:27
Hi,

On the page where jdownloads is showing the rating system, I have this error in my Chrome Developer Tool :

Refused to execute script from 'https://www.exemple.com/components/com_jdownloads/assets/rating/js/ajaxvote.php' because its MIME type ('text/css') is not executable, and strict MIME type checking is enabled.

Any fix for this ?

Thanks in advance

Erik
Title: Re: Strict MIME type error
Post by: ColinM on 25.06.2021 22:16:26
Erik,The <a> tags were missing
Code: [Select]
type="text/javascript"Before any thing take a backup! Unzip the attached jdownloads.zip to get jdownloads.phpoverwrite  the existing jdownloads.php in \components\com_jdownloads\helpers\  (or maybe just rename the existing one as jdownloads-ORIG.php)
I am not familiar with the Chrome Developer Tool - my preferred browser is Firefox - so I may not have tested it fully!!

Please report the result
Colin

Title: Re: Strict MIME type error
Post by: rikoooo on 26.06.2021 12:05:23
Dear Colin,

Thank you for your help, however, I don't understand which line I need to modify.

When I'm looking for,
Code: [Select]
type="text/javascript" I get at the right line, but I don't see where the
Code: [Select]
<a> tag is missing since there is no
Code: [Select]
</a> tag anywhere.

Regards,

Erik
Title: Re: Strict MIME type error
Post by: ColinM on 26.06.2021 13:49:23
Erik
Have sent you a PM - which is what I intended!!

Colin
Title: Re: Strict MIME type error
Post by: ColinM on 28.06.2021 13:27:41
Erik
Have you had time to check out the modified php file yet
Colin