Note - I'm not talking about requirejs, I'm talking about https://gitter.im/request/request - which is different.
https://gitter.im/request/request works in a simple node app from the command line. NO CORS. But using any angular functions in my angular app (ie a different app) does not work due to CORS. My simple app that works is https://github.com/datamystic/share2predictbgl-bridge Let me know if I can help further. Regards, Simon Carter, DataMystic.com <http://datamystic.com/> Skype:datamystic <skype:datamystic?call> +61.3.9028.8594 (GMT+10 hours) PS. Know someone with diabetes? Tell them about PredictBGL Insulin Dose Calculator <http://predictbgl.com/> PREDICTS future blood sugars, avoids hypos and coaches to better doses and better health TextPipe: PCMAG - "The ultimate text conversion and manipulation tool" Detach Outlook Attachments and send huge files - <http://www.detachpipe.com/> DetachPipe.com Download the latest Windows, Mac and iPhone software - <http://downloadpipe.com/> DownloadPipe.com From: [email protected] [mailto:[email protected]] On Behalf Of Sander Elias Sent: Saturday, April 2, 2016 6:14 PM To: AngularJS Subject: [AngularJS] Re: angular-ified version of the request.js module to avoid CORS? Hi Simon, Node has no CORS issue. You can use whatever you want in node to retrieve content, and it will just work. CORS is a server/browsers interface to protect the server from being used as a free resource. So yes, requirejs is node-only, and that it has no CORS issue in node. However, if you get it running in the browser(unlikely..) it also will have an CORS restriction on it. There are 2 ways you can access an CORS protected resource. 1. ask the server-owner to allow your app. (easiest way) 2. use a CORS proxy. (simplest form, write an endpoint in your own server that fetches the resource you need) Hope this helps you a bit, Regards Sander -- You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/byzzwmcuQTY/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout. -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
