< Summary - Syki

Information
Class: Syki.Back.Configs.CorsConfigs
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Configs/CorsConfigs.cs
Tag: 56_26538939494
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 19
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 WebApplicationBuilder builder)
 6    {
 47        builder.Services.AddCors(options => options
 28            .AddDefaultPolicy(builder => builder
 29                .AllowAnyMethod()
 210                .AllowAnyHeader()
 211                .AllowCredentials()
 212                .WithOrigins(
 213                    "http://localhost:3000",
 214                    "https://app.syki.com.br"
 215                )
 416            )
 217        );
 218    }
 19}