Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XmlHttpRequest error #3

Open
Trevoke opened this issue Feb 15, 2015 · 3 comments
Open

XmlHttpRequest error #3

Trevoke opened this issue Feb 15, 2015 · 3 comments

Comments

@Trevoke
Copy link

Trevoke commented Feb 15, 2015

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
Copy link

Hey man , look at this link:
http://stackoverflow.com/questions/20904098/react-js-example-in-tutorial-not-working

@kimown
Copy link

kimown commented Jun 9, 2015

i met the same problem,thank you very much

@miguelLizardoSanchezDiaz

i'm have the similar problem :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants