Static Web App with Managed Function - can't turn off Easy Auth headers

Eliezer Baschkier 0 Reputation points
2025-12-12T17:10:53.37+00:00

I have created a Static Web App with Managed Functions, and I am using custom Auth by sending a token in the Authorization header.

I have turned Easy Auth off in the managed functions by setting this in the staticwebapp.config.json

  "routes": [
    {
      "route": "/api/*",
      "allowedRoles": ["anonymous"]
    }
  ],

In spite of that, Easy Auth seems to still be on because I get a 401 when hitting the endpoints, and I see that the token issuer and audience is a different one (from the logs in Application Insights):

Decoded token issuer: https://random-uuid.scm.azurewebsites.net

Decoded token audience: https://random-uuid.azurewebsites.net/azurefunctions

I can't find a place in the Azure Portal where I can check if Easy Auth is on/off in the SWA.

How can I make sure that it's off?

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
{count} votes

Your answer

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