forked from xiongyuxing/tiku-backend.net
13 lines
471 B
C#
13 lines
471 B
C#
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; }
|
|
}
|