HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    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. *.example.com).

    Returns
    Type Description
    IServiceCollection
    © Singulink. All rights reserved.