Если вы работаете с WCF Self Hosted, вам придется заставить службу работать в междоменном домене.
Ваше приложение может использовать некоторые из CORS, найденных здесь http://enable-cors.org/server_wcf.html
Ниже приведена копия конфигурации, которую я использовал:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<httpRuntime
maxRequestLength="2147483647"
executionTimeout="300" />
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type, Accept" />
<add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS" />
<add name="Access-Control-Max-Age" value="1728000" />
</customHeaders>
</httpProtocol>
</system.webServer>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="crossOriginResourceSharingBehavior" type="Work.Server.EnableCrossOriginResourceSharingBehavior, Work.Server, Version=1.0.0.0, Culture=neutral" />
</behaviorExtensions>
</extensions>
<bindings>
<webHttpBinding>
<binding name="webHttpBindingWithJsonP" crossDomainScriptAccessEnabled="true" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
</binding>
</webHttpBinding>
</bindings>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<services>
<service name="Work.Server.WorkService">
<endpoint address="" behaviorConfiguration="restfulBehaviour" binding="webHttpBinding" contract="Work.Server.IWorkService" bindingConfiguration="webHttpBindingWithJsonP" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="restfulBehaviour">
<webHttp automaticFormatSelectionEnabled="false" />
<crossOriginResourceSharingBehavior />
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>
</configuration>