title: Safari iOS not loading Javascript file?
body: <p>I have just upgraded my iOS because of the recent <a href="http://qz.com/738214/update-your-apple-devices-now-to-fix-a-terrifying-security-bug/" rel="noreferrer">security bug</a>, and I find that my website is no longer loading properly on my phone!</p>
  
  <p>I've boiled the problem down to a simplified example...</p>
  
  <p>index.html =</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Demo&lt;/title&gt;
      &lt;meta name="description" content="Test of basic Javascipt function"&gt;
      &lt;script src="demo.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body class="body"&gt;
      &lt;div id="main"&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>demo.js =</p>
  
  <pre><code>var i = 0;
  
  function update() {
      'use strict';
      document.getElementById("main").innerHTML = i;
      i = i + 1;
  }
  setInterval(update, 1000);
  </code></pre>
  
  <p>On my desktop this produces an iterating count, but when viewed with Safari on my phone (Mobile/12G34 Safari/601.1) the javascript file simply does not load????  The Javascript file doesn't even show up under the "All Resources" tab in my WebInspector which I am tethering via USB.</p>
  
  <p>Suggestions?</p>
  
  <p>Thanks,</p>
  
  <p>Bill</p>
  
  <hr>
  
  <p>Edit:
  This question has gotten no response, but I'm still wrestling with this problem.  I've found some more information.</p>
  
  <p>Using the Safari WebInspector I've found that the javascript is not loading because...</p>
  
  <blockquote>
    <p>Blocked script execution in '<a href="http://192.168.133.1/demo.html" rel="noreferrer">http://192.168.133.1/demo.html</a>' because
    the document's frame is sandboxed and the 'allow-scripts' permission
    is not set.</p>
  </blockquote>
  
  <p>Since I'm serving this page off a homespun webserver on an esp8266, this message has inspired me to tune up my HTTP headers.  The HTTP headers appear to be fine.  </p>
  
  <p>I can't figure out how this html page is getting sandboxed in the first place, and how to 'allow-scripts' so that I can run my script in Safari Mobile.</p>
  
  <p>Any help would be much appreciated.</p>