We are developing a web application using ASP.NET and AJAX, and we want to place our WCF service level on another website and call JavaScript calls to the service level from our client pages. We understand that the browser does not allow AJAX calls to another port or domain. What is the best way to architecture a solution? We consider the use of a proxy level with services hosted in the same domain as the client that has a link to a web link to the service level. Is there a better solution?
Generally, it’s best to limit the number of domains available on your page. Server side proxy is a really good way.
I think the best way is to invoke a local page that invokes the remote resource and returns the result. this way you avoid cross-domain issues.
.
, - - . IIS7, .
The prototype has a plugin for this. The problem is with the client, not the server. www.mellowmorning.com/2007/10/25/introducing-a-cross-site-ajax-plugin-for-prototype/
Source: https://habr.com/ru/post/1697722/More articles:Escape in sed / shell - shellSQL Server 2008 Reporting Services in a failover cluster - sql-serverFile name corruption on file upload (IE) - httpDoes anyone use Microsoft Software Licensing and Protection (SLP) services? - performanceNameSpaceBinding and wsadmin - websphereHow can I get the XElement.InnerText value in Linq for XML? - vb.net.Net CF Prevents excessive, impatient clicking (while redrawing the screen) - refreshGrouped SQL sub-query problem, medium - sqlModeling related objects - designInheriting from protected classes in C +++ - c ++All Articles