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)
20originalPolicy.IsOriginAllowed = isOriginAllowed;
CorsPolicyTests.cs (1)
35policy.IsOriginAllowed = origin => true;
CorsServiceTests.cs (3)
86IsOriginAllowed = origin => false 231policy.IsOriginAllowed = origin => true; 362IsOriginAllowed = 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 251SetIsOriginAllowed(policy.IsOriginAllowed);
Infrastructure\CorsService.cs (1)
232if (policy.AllowAnyOrigin || policy.IsOriginAllowed(originString))
Microsoft.AspNetCore.Cors.Test (6)
CorsPolicyBuilderTests.cs (5)
41Assert.Same(originalPolicy.IsOriginAllowed, corsPolicy.IsOriginAllowed); 186Assert.Same(corsPolicy.IsOriginAllowed, isOriginAllowed); 200Assert.True(corsPolicy.IsOriginAllowed("http://test.example.com")); 214Assert.False(corsPolicy.IsOriginAllowed("http://example.com"));
CorsPolicyTests.cs (1)
24Assert.NotNull(corsPolicy.IsOriginAllowed);