Error on minification in console “Refused to execute because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled”

531 views
Skip to first unread message

Anshul Ghorawat

unread,
Jun 9, 2017, 4:11:10 AM6/9/17
to Angular and AngularJS discussion

I need to minify all my js files(using Adobe Experience Manager) in the folder 'js', which also consists of 'angular.min.js'.

While trying to do that, it throws an error in chrome as -

Refused to execute script 'angular.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.


How could I fix this?

Sander Elias

unread,
Jun 9, 2017, 5:36:14 AM6/9/17
to Angular and AngularJS discussion
Hi Anshul,

Iirc it's not advised to minimise angularjs by yourself. But if you are still want to do that, I think you should file this question to the Adobe Experience Manager's team.  It doesn't seem related to anything angularjs does.

Regards
Sander


Reply all
Reply to author
Forward
0 new messages