respond.min.js, line 5 character 746, access is denied , in IE8?

2.6k Views Asked by At

actually i am testing my site in IE8 using bootstrap3. I used these lines of code.

  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>

When I was debugging the code, IE8 reflects the error at c.open("GET",a,!0) , how can I solve it , what is the issue ????

2

There are 2 best solutions below

1
Zze On

When using bootstrap and IE8, you must run you html from a server to avoid a security issue as stated by @jevgenig. When testing locally, you can use localhost as a substitute.

I also recommend wrapping these scripts in IE specific comments in your header.

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
0
Sourabh On

to run respond.js you need a localhost. This will solve you problem.