7 writes to IsOriginAllowed
Microsoft.AspNetCore.Cors (2)
Infrastructure\CorsPolicyBuilder.cs (2)
208
_policy.
IsOriginAllowed
= isOriginAllowed;
220
_policy.
IsOriginAllowed
= _policy.IsOriginAnAllowedSubdomain;
Microsoft.AspNetCore.Cors.Test (5)
CorsPolicyBuilderTests.cs (1)
20
originalPolicy.
IsOriginAllowed
= isOriginAllowed;
CorsPolicyTests.cs (1)
35
policy.
IsOriginAllowed
= origin => true;
CorsServiceTests.cs (3)
86
IsOriginAllowed
= origin => false
231
policy.
IsOriginAllowed
= origin => true;
362
IsOriginAllowed
= origin => true
10 references to IsOriginAllowed
Microsoft.AspNetCore.Cors (4)
Infrastructure\CorsPolicy.cs (1)
75
/// Gets a value indicating if <see cref="
IsOriginAllowed
"/> is the default function that is set in the CorsPolicy constructor.
Infrastructure\CorsPolicyBuilder.cs (2)
213
/// Sets the <see cref="CorsPolicy.
IsOriginAllowed
"/> property of the policy to be a function
251
SetIsOriginAllowed(policy.
IsOriginAllowed
);
Infrastructure\CorsService.cs (1)
232
if (policy.AllowAnyOrigin || policy.
IsOriginAllowed
(originString))
Microsoft.AspNetCore.Cors.Test (6)
CorsPolicyBuilderTests.cs (5)
41
Assert.Same(originalPolicy.
IsOriginAllowed
, corsPolicy.
IsOriginAllowed
);
186
Assert.Same(corsPolicy.
IsOriginAllowed
, isOriginAllowed);
200
Assert.True(corsPolicy.
IsOriginAllowed
("http://test.example.com"));
214
Assert.False(corsPolicy.
IsOriginAllowed
("http://example.com"));
CorsPolicyTests.cs (1)
24
Assert.NotNull(corsPolicy.
IsOriginAllowed
);