<https://lh4.googleusercontent.com/-vFWH7i2Nk5c/VOxfKhUNDUI/AAAAAAAAABU/svwQFCqKgW4/s1600/Screenshot%2B2015-02-24%2B12.19.53.png>

<https://lh4.googleusercontent.com/-vFWH7i2Nk5c/VOxfKhUNDUI/AAAAAAAAABU/svwQFCqKgW4/s1600/Screenshot%2B2015-02-24%2B12.19.53.png>

Hi Sander,

Angular and the stuff is new to me. Sorry for the silly questions.
I installed CORS. I do not get a full picture about the entire process on 
how to retrieve the XML file via my Express Server.

Actually I wanted to retrieve a XML file from a remote embedded system via 
Angular. That doesnt work due to CORS. (see pic attached)
OK... But what I have to do now?

1.I set up a new route endpoint in Express:
app.route('/api/devices/remote')
        .get(cors(),function(req, res, next){
              res.json({msg: 'This is CORS-enabled for a whitelisted 
domain.'});
          }
      );


 2. What I need to do so that the route endpoint forwards my http GET 
request to my remote embedded sytem ((http://xxxx.ddns.net:8082/index.htm)) 
and retrieves the file I need and push it back to my angular client app
    

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to