Hi,

make sure the web server you are interacting with sets the right CORS headers 
in the response.
If you control it you can find more info here: 
http://enable-cors.org/server.html

Julien

Le 13 févr. 2014 à 18:40, Thomas <[email protected]> a écrit :

> Hi Everyone,
> 
> I am trying to build a little cljs app and I want to call a REST API that 
> potentially will run on a different machine (testing with localhost at the 
> moment).
> 
> I am using the cljs-http library which seems to be quite easy to use. But I 
> get the following error when I do a GET call:
> 
> XMLHttpRequest cannot load https://localhost:9443/path/. No 
> 'Access-Control-Allow-Origin' header is present on the requested resource. 
> Origin 'null' is therefore not allowed access.  
> 
> When I do the same call however from a normal browser window or with Poster I 
> do get a good response.
> 
> Any idea how I can avoid it? I did bit of Googling and the error is related 
> to Cross Origin Resources, but couldn't find a solution :((  Any ideas how to 
> avoid this?
> 
> Thanks in advance!!!
> 
> Thomas
> 
> -- 
> Note that posts from new members are moderated - please be patient with your 
> first post.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" 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].
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" 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].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to