Test/Run trigger not working from within Azure Function under Flex Consumption pricing tier; throws CORS error

jmahmood 40 Reputation points
2024-06-11T14:33:43.82+00:00

I'm an Azure novice/intermediate. Please bear with me.

I have a Function App with a collection of timer triggered functions that need to run for ~20minutes each. I decided to upgrade my Function App to the Flex Consumption plan from the lowest-tier Consumption plan so that the functions could run longer. Nothing else in my deployment parameters changed. I deploy from within VS Code.

When I triggered functions in the Consumption plan from within the portal (Test/Run), things worked as expected. After switching to the Flex Consumption plan, I get the "Please add domain to the CORS section" error when I try the same Test/Run trigger. Of course, https://portal.azure.com is already added. I have also tried with the wildcard "*".

Any ideas on how to resolve this?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

Accepted answer
  1. Silvia Wibowo 6,041 Reputation points Microsoft Employee Volunteer Moderator
    2024-06-18T03:32:38.6866667+00:00

    Hi @jmahmood , I understand that you have a Function App (Flex Consumption), but you got CORS error.

    After you contacted Microsoft Support, they confirmed that this feature has not yet been implemented for Flex Consumption plan, so making CORS changes did not end up helping.

    Thank you for your update.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.