Skip to content

Instantly share code, notes, and snippets.

@kylewelsby
Created April 17, 2013 08:06
Show Gist options
  • Save kylewelsby/5402573 to your computer and use it in GitHub Desktop.
Save kylewelsby/5402573 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<base href="http://localhost:3000/proxy/">
</head>
<body>
<p>Open the console and notice the following error
<code>
<pre><font color="red">GET <a href="http://localhost:3000/some_path_script">http://localhost:3000/some_path_script</a> 404 (Not Found)</font></pre>
</code>
</p>
<hr/>
<p>
The expectations should be
<code>
<pre><font color="grey">GET <a href="http://localhost:3000/proxy/some_path_script">http://localhost:3000/proxy/some_path_script</a> 200 (OK)</font></pre>
</code>
</p>
<div id=xjsd></div>
<script>
window.setTimeout(function(){
var c = document.createElement('script');
c.src = "/some_path_script";
document.getElementById("xjsd").appendChild(c);
}, 0);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment