CorsPolicyBuilder.SetIsOriginAllowed(Func<String,Boolean>) 메서드

정의

기본 정책에 대해 지정된 isOriginAllowed 를 설정합니다.

public:
 Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicyBuilder ^ SetIsOriginAllowed(Func<System::String ^, bool> ^ isOriginAllowed);
public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder SetIsOriginAllowed (Func<string,bool> isOriginAllowed);
member this.SetIsOriginAllowed : Func<string, bool> -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
Public Function SetIsOriginAllowed (isOriginAllowed As Func(Of String, Boolean)) As CorsPolicyBuilder

매개 변수

isOriginAllowed
Func<String,Boolean>

원본이 허용되는지 평가하기 위해 정책에서 사용하는 함수입니다.

반환

현재 정책 작성기입니다.

적용 대상