Hi Dan Stef added localhost:8080 to the allowed hosts and it is working now. But, I agree that I should rely on a server I set up for myself. Will take the .NET implementation guidelines you shared and setup a local server to help me.
Thanks Bhargav Golla Developer. Freelancer. B.E (Hons.) Computer Science BITS-Pilani Github <http://www.github.com/bhargavgolla> | LinkedIN<http://www.linkedin.com/in/bhargavgolla> | Website <http://www.bhargavgolla.com/> On Fri, Jul 26, 2013 at 3:30 PM, Dan Haywood <[email protected]>wrote: > > > > On 24 July 2013 21:31, Bhargav Golla <[email protected]> wrote: > >> Hi >> >> I use my viewer from Jetty server, origin URL is http://localhost:8080/ >> > > Bhargav... > I'd be surprised if this works.. I suspect CORS would need the actual > hostname, not just "localhost". > > But in any case, I'd rather you had a self-contained development > environment, with your own server, rather than relying upon Richard and > Stef's server up at http://mvc.nakedobjects.net:1081/RestDemo... not > really good practice to rely on someone else's server (which might not > always be available) when doing development. > > To that end, I just mailed you (and Dimuthu) details about how to run up > RO.Net (and NO MVC) locally, with the AdventureWorks database, and shared a > .zip file with you. Please take the time to work through that and get > RO.Net running locally. > > Thx > Dan > > > > >> >> Thanks for the help. >> >> Bhargav Golla >> Developer. Freelancer. >> B.E (Hons.) Computer Science >> BITS-Pilani >> Github <http://www.github.com/bhargavgolla> | >> LinkedIN<http://www.linkedin.com/in/bhargavgolla> >> | Website <http://www.bhargavgolla.com/> >> >> >> On Thu, Jul 25, 2013 at 12:43 AM, Stefano Cascarini < >> [email protected]> wrote: >> >>> Bhargav, >>> >>> if you let me know your origin url I'll set you up in the CORS config. >>> >>> cheers >>> >>> Stef >>> >>> >>>
