On Nov 30, 2014, at 6:53 AM, Mountain wrote:

> 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?

Your question is not about node; it's about how web browsers and web servers 
work. Please read:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS


-- 
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/52D41AF3-6B76-41CF-A405-A7BD3235028F%40ryandesign.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to