✨
This commit is contained in:
33
StopShopping.Services/Extensions/AppOptions.cs
Normal file
33
StopShopping.Services/Extensions/AppOptions.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
namespace StopShopping.Services.Extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 业务配置
|
||||
/// </summary>
|
||||
public record AppOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// .bjbj.me
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string CookieDomain { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 域名,http(s)://www.xxx.xx
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string DomainPath { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// anti-forgery 请求头
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string CSRFHeaderName { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// anti-forgery cookie's name
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string CSRFCookieName { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 跨域站点
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string[] CorsAllowedOrigins { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user