Yesterday I tried to use a little node.js script as localhost in my website development workflow.
It works fine but no external resources are shown - my browser gives me the following error message: "XMLHttpRequest cannot load http://xxx.xxx/xxx/wallpaper_01.jpg. Origin http://localhost:3000 is not allowed by Access-Control-Allow-Origin." I don't know node.js at all. How do I have to change the script to get it work? var connect = require('connect'); var serveStatic = require('serve-static'); var app = connect(); app.use(serveStatic("./_distribution")); app.listen(3000); Thanks a lot -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/58f89c11-1dce-4b0c-82ac-a6ab38a8d12e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
