简体   繁体   English

WCF在与asp.net应用程序位于同一服务器上部署的服务上给出跨域错误

[英]WCF giving cross-domain error on a service deployed on the same server as an asp.net application

I deployed an asp.net web application that contains a WCF service. 我部署了一个包含WCF服务的asp.net Web应用程序。 I updated the ServicesReferences.ClientConfig file to point to the live address of the .svc file representing the service. 我更新了ServicesReferences.ClientConfig文件,使其指向代表该服务的.svc文件的实时地址。

However, when I try to consume the service in the live deployed website I get a cross domain error. 但是,当我尝试在实时部署的网站中使用该服务时,会出现跨域错误。

I'm wondering why that is the issue. 我想知道为什么是这个问题。

Follow below link.I hope it will help you to solve cross domain error. 请点击以下链接。希望它可以帮助您解决跨域错误。

allow cross-domain access 允许跨域访问

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM