Forum Discussion
Vishwanatha Nayak
Nov 07, 2018Brass Contributor
SPFx - 401 Unauthorized calling Azure Function Secured with AAD
Hello, I am trying to call a AAD secured Azure Function from SPFx web part and getting 401 unauthorized error. I have followed - https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/gui...
nickstrickland21231
Dec 02, 2020Copper Contributor
Hey if you want to keep the level at a function to keep your endpoint more secure then instead of using https://yourapp?code=longstring
take the code out and use the
x-functions-key in the headers with the code placed (longstring in my example) within the HTTP header and the function will work.