Set-KrCorsExposedHeader

SYNOPSIS

Set exposed headers for a CORS policy builder.

SYNTAX

__AllParameterSets

Set-KrCorsExposedHeader [-Builder] <CorsPolicyBuilder> [-Headers] <string[]> [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Configures which response headers are exposed to browser JavaScript by adding the Access-Control-Expose-Headers list to the CORS policy.

EXAMPLES

EXAMPLE 1

New-KrCorsPolicyBuilder Set-KrCorsExposedHeader -Headers ‘X-Total-Count’,’X-Page-Number’

PARAMETERS

-Builder

The CorsPolicyBuilder to configure. Accepts from pipeline.

Type: Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Headers

One or more header names to expose to the client.

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder

{{ Fill in the Description }}

OUTPUTS

Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder

{{ Fill in the Description }}

NOTES

{{ Fill in the related links here }}