Hello,
I have an Azure Static Web App which sends an HTTP POST request to an HTTP function app. I am using fetch to send the request to the url using the function url that is provided by Azure. However, I do not want to expose my function key, so I am looking for a secure way to do this.
I tried storing the function key as an environment variable in the SWA's configuration and accessing it in the JavaScript file using process.env.AZURE_FUNCTION_KEY;, but it did not work. I would really appreciate if someone could let me know if I am approaching this incorrectly or if there is another solution. Thank you c: