using Microsoft.AspNetCore.Cors.Infrastructure;
namespace Jellyfin.Server.Models
{
///
/// Server Cors Policy.
///
public static class ServerCorsPolicy
{
///
/// Default policy name.
///
public const string DefaultPolicyName = "DefaultCorsPolicy";
///
/// Default Policy. Allow Everything.
///
public static readonly CorsPolicy DefaultPolicy = new CorsPolicy
{
// Allow any origin
Origins = { "*" },
// Allow any method
Methods = { "*" },
// Allow any header
Headers = { "*" }
};
}
}