共用方式為


CorsSettings.AllowedOrigins Property

Definition

Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all.

[Newtonsoft.Json.JsonProperty(PropertyName="allowedOrigins")]
public System.Collections.Generic.IList<string> AllowedOrigins { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="allowedOrigins")>]
member this.AllowedOrigins : System.Collections.Generic.IList<string> with get, set
Public Property AllowedOrigins As IList(Of String)

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Applies to