• Register
1 vote
143 views

Problem :

I am getting mime type error
because its mime type ('text/plain') is not executable, and strict mime type checking is enabled.
6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

One can use the browser extension to remove X-Content-Type-Options response header for raw.githubusercontent.com files. I found couple of browser extensions those can modify response headers.

  1. Requestly: Chrome + Firefox
  2. Modify Headers: Firefox

1: Use of Modify Headers Rule and removal of the response header

Steps

  1. Download and Install Requestly from http://www.requestly.in
  2. Please go to Rules Page
  3. Please click on Add Icon to create a desired rule
  4. Select Modify Headers
  5. Give a desired Name and suitable Descripton
  6. Select Remove -> Response -> X-Content-Type-Options
  7. In your Source field please enter Url -> Contains -> raw.githubusercontent.com

2: Use of Replace host Rule

  1. Download and Install Requestly from http://www.requestly.in
  2. Please go to Rules Page
  3. Please click on Add Icon to create a rule
  4. Please replace raw.githubusercontent.com with rawgit.com
9 7 4
38,600 points

Related questions

0 votes
1 answer 248 views
248 views
Problem : Encountered mime type error and looking for its solution because its mime type ('text/html') is not executable, and strict mime type checking is enabled.
asked Nov 11, 2019 peterlaw 6.9k points
0 votes
1 answer 35 views
35 views
Problem: because its mime type ('text/css') is not executable, and strict mime type checking is enabled.
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 427 views
427 views
Problem : I am trying to use the reactrouter but i am getting following error because its mime type ('text/html') is not executable, and strict mime type checking is enabled
asked Nov 13, 2019 peterlaw 6.9k points
0 votes
1 answer 8 views
8 views
Problem: Refused to execute script from 'http://localhost:8080/edit/bundle.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. I am using react-router and i got this error while using <Route path="/edit/:id" component={ ... ></div> <script type="text/javascript" src="bundle.js"></script> </body> </html> Please Help me in resolving this issue.
asked Apr 25 ochena 23.3k points
0 votes
1 answer 11 views
11 views
Problem: strict mime type checking is enabled. As you know its mime type ('text/html') is not executable
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 218 views
218 views
Problem : I have the javascript application and when I try to run it on firefox I am facing the below error on the console: &ldquo;Because its mime type ('text/html') is not a supported stylesheet mime type&rdquo; Now I am completely confused because of this error. Kindly somebody let me know how can I resolve my above error?
asked Jan 29, 2020 jwilliam 3.9k points
0 votes
1 answer 10 views
10 views
Problem: I am using the example from: Get JSON data from external URL and display it in a div as plain text To get information from a JSON with nested data but I am getting the result: [object Object] How can I get the NAME or JOB information? HTML <div id="result" style="color:red"></ ... ); }); JSON { "queries":[ { "query":{ "CODE":"555443567", "NAME":"NAME LASTNAME", "JOB":"JOB TITLE" } } ] }
asked May 2 ochena 23.3k points
0 votes
1 answer 4 views
4 views
Problem: I'm trying to host a website on github and it keeps showing this error : "Unavailable for your site because your domain is not properly configured to support HTTPS(coursera-confusion.com) &mdash; Troubleshooting custom domains HTTPS provides a layer of encryption that ... will only be served over HTTPS. Learn more. " This is my first time hosting a web repo on github.please help.
asked Apr 25 sumaiya simi 43.9k points
0 votes
1 answer 7 views
7 views
Problem: I am facing this iisue can any one help please? file not found or no read permission zip
asked Mar 19 PkGuy 23.5k points
1 vote
1 answer 10 views
10 views
Problem: I'm not able to complete my work because of this error > fatal: Authentication Failed
asked Apr 26 Abik Dey 4k points