File: DisableCorsAttribute.cs
Web Access
Project: src\src\aspnetcore\src\Middleware\CORS\src\Microsoft.AspNetCore.Cors.csproj (Microsoft.AspNetCore.Cors)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Diagnostics;
using Microsoft.AspNetCore.Cors.Infrastructure;

namespace Microsoft.AspNetCore.Cors;

/// <inheritdoc />
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
[DebuggerDisplay("{ToString(),nq}")]
public class DisableCorsAttribute : Attribute, IDisableCorsAttribute
{
    /// <inheritdoc/>
    public override string ToString()
    {
        return "CORS Disable";
    }
}