CorsOptions Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides programmatic configuration for Cors.
public ref class CorsOptions
C#
public class CorsOptions
type CorsOptions = class
Public Class CorsOptions
- Inheritance
-
CorsOptions
Default |
Gets or sets the default policy name. |
Add |
Adds a new policy and sets it as the default. |
Add |
Adds a new policy and sets it as the default. |
Add |
Adds a new policy. |
Add |
Adds a new policy. |
Get |
Gets the policy based on the |
Produk | Versi |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |