Created
April 17, 2013 08:06
-
-
Save kylewelsby/5402573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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