XmlHttpRequest error
Opened this issue · 3 comments
Trevoke commented
I'm running into the following error, implementing this locally:
XMLHttpRequest cannot load file:///Users/x/src/workbench/go-react/go.js. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
JSXTransformer.js:10243 Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///Users/x/src/workbench/go-react/go.js'.
My index.html looks like this:
<!DOCTYPE html>
<html>
<head>
<title>React Go Tutorial</title>
<link type="text/css" href="style.css" rel="stylesheet" />
</head>
<body>
<div id="main">
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/0.8.0/react.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/0.8.0/JSXTransformer.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
<script type="text/javascript" src="./board.js"></script>
<script type="text/jsx" src="./go.js"></script>
</body>
</html>
miloskovacevic commented
Hey man , look at this link:
http://stackoverflow.com/questions/20904098/react-js-example-in-tutorial-not-working
kimown commented
i met the same problem,thank you very much
miguelLizardoSanchezDiaz commented
i'm have the similar problem :(