Skip to content

add cors

add cors #12

Triggered via push June 7, 2024 14:34
Status Success
Total duration 2m 36s
Artifacts

webapi-cicd.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
build: api/framework/Infrastructure/Cors/CorsOptions.cs#L4
Non-nullable property 'AllowedOrigins' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: api/framework/Infrastructure/Cors/CorsOptions.cs#L4
Change 'AllowedOrigins' to be read-only by removing the property setter (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2227)
build: api/framework/Infrastructure/Cors/CorsOptions.cs#L4
Change 'List<string>' in 'CorsOptions.AllowedOrigins' to use 'Collection<T>', 'ReadOnlyCollection<T>' or 'KeyedCollection<K,V>' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1002)
build: api/framework/Infrastructure/Cors/CorsOptions.cs#L4
Non-nullable property 'AllowedOrigins' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: api/framework/Infrastructure/Cors/CorsOptions.cs#L4
Change 'AllowedOrigins' to be read-only by removing the property setter (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2227)
build: api/framework/Infrastructure/Cors/CorsOptions.cs#L4
Change 'List<string>' in 'CorsOptions.AllowedOrigins' to use 'Collection<T>', 'ReadOnlyCollection<T>' or 'KeyedCollection<K,V>' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1002)