First, to change the URL to which you send RPCs, a cleaner way is to call WebSharper.Remoting.EndPoint <- "http://your-server-url" in your client-side WebSharper code (or if you want to do it in JavaScript: WebSharper.Remoting.set_EndPoint("http://your-server-url").

As for the 403 error: yes, there is an additional check in the web server. You need to add your client's URL to the allowed clients by calling WebSharper.Web.Remoting.AddAllowedOrigin "http://your-client-url" on the server. And with this you shouldn't need to add any customHeaders in Web.config.

By on 10/19/2017 6:08 AM ()

Thanks! A related question: the method that you have described allows us to do POST requests. Is there a similar way to perform GET requests?

By on 10/23/2017 1:40 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us
Built with WebSharper