@anthonychu @santoshhari also, I saw this one https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Configuration/CorsOptionsSetup.cs skips CORS config because IsAnyLinuxConsumtion() returns false for container apps (e.g. There is a ContainerName env. var)
@nikneem Awesome! It's still a hack though, as this logic can change and having multiple instances of the host with the same container name might cause issues if there's code that relies on it being unique per instance. I guess if you base your image on a specific version of the host and you test after each upgrade, this is less of a concern.
I've logged a feature request: https://github.com/Azure/azure-functions-host/issues/8936
@anthonychu @codesapien Promises promises... https://hexmaster.nl/posts/container-apps-cors-settings/
Everyone is welcome as long as you follow our code of conduct! Thank you. Mastodon.cloud is maintained by Sujitech, LLC.