Not that I know of .. did "response.addHeader("Access-Control-Allow-Origin",
"*")" work for you?On Wed, Jun 4, 2014 at 2:19 AM, <[email protected]> wrote: > Hi guys, > > I develop a Phonegap application using AngularJS and couchbase light. I'm > testing my app in the browser. > Now I have my device attached and the app running. Then I tunnel the > couchbase light port to my local computer using "adb forward tcp:5984 > tcp:5984". > > This way my javascript REST calls to the database gets forwarded to the > database on the device. > > The problem with this: Since CORS is not supported in the couchbase light > servlet, I got a "400 Error, saying Access-Control-Allow-Origin is not > allowed from ths resource". > The simplest solution would be to build my own version of the > "cblite-listener" and add something like > "response.addHeader("Access-Control-Allow-Origin", "*")". > > Is there any other solution out there? > > Cheers guys, > Stefan > > -- > You received this message because you are subscribed to the Google Groups > "Couchbase Mobile" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mobile-couchbase/9e2f0d76-1a05-4976-99e7-b1f42fb6ae3a%40googlegroups.com > <https://groups.google.com/d/msgid/mobile-couchbase/9e2f0d76-1a05-4976-99e7-b1f42fb6ae3a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCHeGaz_rErYd3Yy3SM8ZGVXMhkJCsS_onSoK7a4Lfic7g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
