Ok, thanks Martin,
Now I need to dig deeper into how my current working Windows CLI code makes the request without proxy and without triggering CORS. - Simon From: Martin Wawrusch [mailto:mar...@wawrusch.com] Sent: Sunday, April 3, 2016 11:50 PM To: AngularJS Cc: simon.car...@datamystic.com Subject: Re: [AngularJS] Re: angular-ified version of the request.js module to avoid CORS? Sanders was talking about request. And he is right. There is no way around CORS when using the browser as it is embedded in the network stack. You have the following options, as Sanders said: * If you control the server add CORS support there * You can ask whomever controls the server to add CORS support * You can write a simple proxy that supports CORS and proxies to the server in question. On Sunday, April 3, 2016 at 3:57:54 AM UTC-7, Simon Carter wrote: 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 +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: ang...@googlegroups.com <javascript:> [mailto:ang...@googlegroups.com <javascript:> ] 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 angular+u...@googlegroups.com <javascript:> . To post to this group, send email to ang...@googlegroups.com <javascript:> . 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.