< Summary

Information
Class: Syki.Back.Configs.CorsConfigs
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Configs/CorsConfigs.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 17
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
AddCorsConfigs(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Configs/CorsConfigs.cs

#LineLine coverage
 1namespace Syki.Back.Configs;
 2
 3public static class CorsConfigs
 4{
 5    public static void AddCorsConfigs(this IServiceCollection services)
 6    {
 27        services.AddCors(options => options
 18            .AddDefaultPolicy(builder => builder
 19                .AllowAnyMethod()
 110                .AllowAnyHeader()
 111                .AllowCredentials()
 112                .WithExposedHeaders("X-Hash", "X-SkipUserRegister", "X-CrossLogin")
 113                .SetIsOriginAllowed(_ => true)
 214            )
 115        );
 116    }
 17}