forked from gongxuegit/tiku-backend.net
feat: add runtime logging cors and zlinq foundation
This commit is contained in:
12
Tiku.Api/Options/CorsOptions.cs
Normal file
12
Tiku.Api/Options/CorsOptions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Tiku.Api.Options;
|
||||
|
||||
public sealed class CorsOptions
|
||||
{
|
||||
public const string SectionName = "Cors";
|
||||
public const string PolicyName = "TikuCors";
|
||||
|
||||
public string[] AllowedOrigins { get; set; } = [];
|
||||
public string[] AllowedHeaders { get; set; } = ["Authorization", "Content-Type", "x-tenant-code"];
|
||||
public string[] AllowedMethods { get; set; } = ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"];
|
||||
public bool AllowCredentials { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user