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

Eliezer B 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

1 answer

Sort by: Most helpful
  1. Vimal Lalani 2,890 Reputation points Microsoft External Staff Moderator
    2025-12-12T17:32:33.4766667+00:00

    Hi @Eliezer Baschkier

    Please verify your Function App settings in the Azure Portal. Since you’re working with Managed Functions, go to the Authentication/Authorization section under your Function App and confirm that Easy Auth is disabled there as well. This helps ensure that no authentication policy is unintentionally blocking your requests.

    Feel free to post back for further assistance!


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.