This repository was archived by the owner on Jan 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
FAQ
Kris Erickson edited this page Feb 3, 2014
·
1 revision
When I open the file I get a blank screen with a bunch of "Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource" and "XMLHttpRequest cannot load" errors.
While the one-document example can be opened in the browser directly, the mvc example must be run from a webserver. The easiest way is to install nodes http server, and start it up from the root
~/topcoat-touch$npm install http-server -g
~/topcoat-touch$http-server
Starting up http-server, serving ./ on port: 8080
Hit CTRL-C to stop the serverthen open a browser to http://localhost:8080/examples/mvc/
~/topcoat-touch$npm testInstall http-server (see first question), and switch to the root directory and open http://localhost:8080/TestRunner.html in a web browser.
~/topcoat-touch$http-server
Starting up http-server, serving ./ on port: 8080
Hit CTRL-C to stop the server