2015-01-15 5 views
1

모든게있다 작품은 절대적으로 잘 나는 수신 4.0.35.0CORS = 사실

Public Overrides Sub Configure(container As Funq.Container) 
     Dim appSettings = New AppSettings() 'Gets settings from web.config 
     ... 
     Plugins.Add(New CorsFeature(allowOriginWhitelist:={"http://localhost:8888", "http://site1.abc.com", "http://site2.abc.com", "http://site3.abc.com"}, allowedMethods:="GET, POST, PUT, DELETE, OPTIONS", allowedHeaders:="Content-Type, Authorization", allowCredentials:=True)) 


End Sub 

오류는 버전에 지금이야 :

XMLHttpRequest cannot load https://site1.abc.com/auth/credentials. 
The 'Access-Control-Allow-Origin' header contains multiple values 'http://site1.abc.com, http://site1.abc.com', 
but only one is allowed. Origin 'http://site1.abc.com' is therefore not allowed access. 

site1.abc.com에서 전화가오고 흥미롭게도 그 두 번 전화가 왔습니다. 그러나 확실히 isnt입니다.

무슨 일이 일어나는지에 대한 단서 자격 증명이있는 단일 끝점에서 API를 호출하는 여러 사이트가 필요합니다.

감사

테리

+0

이 문제는 [v4.0.36에서 수정되었습니다.] (http://stackoverflow.com/a/27831155/85785) [지금 MyGet에서 사용할 수 있음] (https://github.com/ServiceStack/ServiceStack/wiki)/MyGet)와 오늘 NuGet에서. – mythz

+0

감사합니다 mythz. 매우 감사. –

+0

FYI [v4.0.36이 방금 NuGet에 출시되었습니다] (https://github.com/ServiceStack/ServiceStack/blob/master/docs/2015/release-notes.md#v4036-release-notes) – mythz

답변