IE9 and IE10 error

I have created a simple html page and serving it via node package serve.

<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script src="" crossorigin="anonymous"></script>
    throw 'DANS error';

It works fine in all the modern browsers, but in IE10 and IE9 I get error:

'Raven' is undefined

(when trying to set the config).

So Ravens not on the window object at all for some reason?

Any help would be great thanks :slight_smile:


Ok, so this line was the problem, if I change it to a protocol-relative URL the issue goes away:

<script src="//" crossorigin="anonymous"></script>

Im guessing this is because I’m testing on un-secure localhost, and it doesnt like the fact I’m getting secure content from an un-secure site. Current best practise* suggests to always use the https protocol, so I guess I’ll just put up with the error in local dev env for older IEs, (as obviously the live site is served over https anyway).