x-functions-key missing when calling Azure Function from Azure SWA
I have my Azure Functions set to authLevel = 'function'
. I'm able to properly pass the x-functions-key
in the header when using Postman and get a response from my Azure Function.
However, in my Azure SWA when using fetch and specifying the x-functions-key
, it seems to be removed / modified when it reaches the Azure Function.
I have tried adding other customer headers (e.x. x-test-header
) and is being properly passed to the Azure function from the SWA.
I noticed in the header received by the Azure Function that there's a x-ms-auth-token
. Is x-functions-key
being converted to x-ms-auth-token
because of the SWA and Azure Function being linked?