Files
StopShopping/StopShopping.Services/Extensions/AppOptions.cs
2026-03-25 14:55:34 +08:00

34 lines
872 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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; } = [];
}