Skip to content

Change proeprty from IncludeRequestingHostName to ExcludeRequestingHost #393

@justinyoo

Description

@justinyoo

Currently, it checks whether to include requesting host name or not:

public virtual bool IncludeRequestingHostName { get; set; } = IsFunctionsRuntimeEnvironmentDevelopment();

by using the hosting environment of Development

protected static bool IsFunctionsRuntimeEnvironmentDevelopment()
{
var development = Environment.GetEnvironmentVariable(FunctionsRuntimeEnvironmentKey) == "Development";
return development;
}

However, it would be more natural to change it to ExcludeRequstingHost and set to false by default.

Also, in addition to relying on the AZURE_FUNCTIONS_ENVIRONMENT value, devs can choose value through OpenApi__ExcludeRequestingHost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions