Method AddAllowedOrigins
AddAllowedOrigins(IServiceCollection, params string[])
Registers allowed origins and CORS services.
Declaration
public static IServiceCollection AddAllowedOrigins(this IServiceCollection services, params string[] allowedOrigins)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collection to add the allowed origins to. |
| string[] | allowedOrigins | The allowed origins to register. Can use wildcards at the start of the origin to match subdomains (e.g.
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |