jDownloadsownloads.com
Advertisement
 

Author Topic: Strict MIME type error [fixed in 3.9.8]  (Read 777 times)

0 Members and 1 Guest are viewing this topic.

Offline rikoooo

  • Newbie
  • *
  • Posts: 35
    • Rikoooo
Strict MIME type error [fixed in 3.9.8]
« 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
« Last Edit: 18.07.2021 16:45:32 by ColinM »

Offline ColinM

  • Moderator
  • *
  • Posts: 4.157
Re: Strict MIME type error
« Reply #1 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


Offline rikoooo

  • Newbie
  • *
  • Posts: 35
    • Rikoooo
Re: Strict MIME type error
« Reply #2 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
« Last Edit: 26.06.2021 12:06:28 by rikoooo »

Offline ColinM

  • Moderator
  • *
  • Posts: 4.157
Re: Strict MIME type error
« Reply #3 on: 26.06.2021 13:49:23 »
Erik
Have sent you a PM - which is what I intended!!

Colin

Offline ColinM

  • Moderator
  • *
  • Posts: 4.157
Re: Strict MIME type error
« Reply #4 on: 28.06.2021 13:27:41 »
Erik
Have you had time to check out the modified php file yet
Colin