19 references to _policy
Microsoft.AspNetCore.Cors (19)
Infrastructure\CorsPolicyBuilder.cs (19)
61
_policy
.Origins.Add(normalizedOrigin);
101
_policy
.Headers.Add(req);
115
_policy
.ExposedHeaders.Add(req);
130
_policy
.Methods.Add(req);
142
_policy
.SupportsCredentials = true;
152
_policy
.SupportsCredentials = false;
162
_policy
.Origins.Clear();
163
_policy
.Origins.Add(CorsConstants.AnyOrigin);
173
_policy
.Methods.Clear();
174
_policy
.Methods.Add(CorsConstants.AnyMethod);
184
_policy
.Headers.Clear();
185
_policy
.Headers.Add(CorsConstants.AnyHeader);
197
_policy
.PreflightMaxAge = preflightMaxAge;
208
_policy
.IsOriginAllowed = isOriginAllowed;
220
_policy
.IsOriginAllowed =
_policy
.IsOriginAnAllowedSubdomain;
230
if (
_policy
.AllowAnyOrigin &&
_policy
.SupportsCredentials)
235
return
_policy
;