You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
We're using C# - although this may apply to All languages as it relates to the configuration of HTTP headers using host.json and Application Settings.
Question
I am trying to override `host.json values configure custom HTTP headers for my Azure Function App via app settings, but I am not seeing the headers in the HTTP response. I have attempted the following approaches:
Adding a custom header XCustomHeader using the key AzureFunctionsJobHost__extensions__http__customHeaders_XCustomHeader with a value of TestHeaderValue, but this header is not present in the response.
Using key AzureFunctionsJobHost__extensions__http__customHeaders with an escaped JSON as the value
Despite these efforts, none of the custom headers are reflected in the response.
Is there a limitation in how the Azure Functions platform processes these headers when defined in app settings?
Steps to reproduce
Add the following app setting in the Azure Portal using Advanced Edit:
Is your question related to a specific version? If so, please specify:
Azure Functions (linux) - Runtime version:
4.636.0.0
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
We're using C# - although this may apply to All languages as it relates to the configuration of HTTP headers using
host.json
and Application Settings.Question
I am trying to override `host.json values configure custom HTTP headers for my Azure Function App via app settings, but I am not seeing the headers in the HTTP response. I have attempted the following approaches:
Adding a custom header
XCustomHeader
using the keyAzureFunctionsJobHost__extensions__http__customHeaders_XCustomHeader
with a value ofTestHeaderValue
, but this header is not present in the response.Using key
AzureFunctionsJobHost__extensions__http__customHeaders
with an escaped JSON as the valueDespite these efforts, none of the custom headers are reflected in the response.
Is there a limitation in how the Azure Functions platform processes these headers when defined in app settings?
Steps to reproduce
Expected behavior
The custom headers (XCustomHeader, Content-Security-Policy, etc.) should be present in the HTTP response.
Actual behavior
None of the custom headers are applied to the response
The text was updated successfully, but these errors were encountered: