14 references to Origins
Microsoft.AspNetCore.Cors (14)
Infrastructure\CorsPolicy.cs (5)
65if (Origins == null || Origins.Count != 1 || Origins[0] != CorsConstants.AnyOrigin) 161builder.AppendJoin(",", Origins); 177return Origins.Contains(origin, StringComparer.Ordinal);
Infrastructure\CorsPolicyBuilder.cs (6)
40/// This method normalizes the origin value prior to adding it to <see cref="CorsPolicy.Origins"/> to match 46/// Finally, the scheme and punycoded host name are culture invariant lower cased before being added to the <see cref="CorsPolicy.Origins"/> 61_policy.Origins.Add(normalizedOrigin); 162_policy.Origins.Clear(); 163_policy.Origins.Add(CorsConstants.AnyOrigin); 247WithOrigins(policy.Origins.ToArray());
Infrastructure\CorsPolicyExtensions.cs (2)
14if (policy.Origins.Contains(origin)) 21return policy.Origins
Infrastructure\CorsService.cs (1)
109result.VaryByOrigin = policy.Origins.Count > 1 || !policy.IsDefaultIsOriginAllowed;