cancel
Showing results for 
Search instead for 
Did you mean: 

need help "requirejs-config.js” was blocked due to MIME type (“text/html”), what is the reason?

need help "requirejs-config.js” was blocked due to MIME type (“text/html”), what is the reason?

 

i got this message in the console while debugging my website : bm-hub.com

 

The resource from “https://bm-hub.com/pub/static/frontend/Sm/destino/en_US/Sm_Destino/requirejs-config.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

 

how it can solve?

2 REPLIES 2

Re: need help "requirejs-config.js” was blocked due to MIME type (“text/html”), what is the rea

Hi @khaled_ismail 

Try to Chang setting in file

In app/etc/di.xml change

Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink

to:

Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

It may help you!
Thank you.

Problem solved? Click Accept as Solution!

Re: need help "requirejs-config.js” was blocked due to MIME type (“text/html”), what is the rea

In Magento 2.2.9 version i got error till after change this.