If I created an Azure Function in isolate process mode, HttpRequestData.Cookies is empty. If I create exactly the same Function in non isolated mode it has cookies.
To illustrate my point. I created 2 functions. Both running on the same port (they are run independently).
(The functions were created with default VS 2021 templates and the only changes that was made is the function name)
From blazor the functions are simply called with.
In chrome I can see the cookies being passed:
(I started this journey trying to inject the ClaimsPrincipal as discussed in: https://www.youtube.com/watch?v=eZQq3zw3WL4. In an Isolated Azure function this value is null, and once again not in an Non Isolated Azure function. I'm assuming that this is because the auth cookie is not picked up)
EDIT: The accepted answer helps with fixing the empty claims issue. However even when the claims are present we don't get the ClaimsPrincipal injected. I found this article that describes a workaround: https://adamstorr.azurewebsites.net/blog/using-azure-functions-middleware-to-access-claimsprincipal-in-azure-static-web-apps