14 references to AllowAnyOrigin
Microsoft.AspNetCore.Cors (5)
Infrastructure\CorsPolicy.cs (1)
154
builder.Append(
AllowAnyOrigin
);
Infrastructure\CorsPolicyBuilder.cs (1)
230
if (_policy.
AllowAnyOrigin
&& _policy.SupportsCredentials)
Infrastructure\CorsService.cs (3)
63
if (policy.
AllowAnyOrigin
&& policy.SupportsCredentials)
100
if (policy.
AllowAnyOrigin
)
232
if (policy.
AllowAnyOrigin
|| policy.IsOriginAllowed(originString))
Microsoft.AspNetCore.Cors.Test (9)
CorsEndpointConventionBuilderExtensionsTests.cs (1)
51
Assert.True(metadata.Policy.
AllowAnyOrigin
);
CorsPolicyBuilderTests.cs (7)
30
Assert.False(corsPolicy.
AllowAnyOrigin
);
60
Assert.False(corsPolicy.
AllowAnyOrigin
);
78
Assert.False(corsPolicy.
AllowAnyOrigin
);
102
Assert.False(corsPolicy.
AllowAnyOrigin
);
122
Assert.False(corsPolicy.
AllowAnyOrigin
);
170
Assert.True(corsPolicy.
AllowAnyOrigin
);
228
Assert.False(corsPolicy.
AllowAnyOrigin
);
CorsPolicyTests.cs (1)
17
Assert.False(corsPolicy.
AllowAnyOrigin
);