Share via

Access to ***.azurewebsites.net was denied - You don't have authorization to view this page. HTTP ERROR 403

Anonymous
2023-06-06T20:28:01.2366667+00:00

I am receiving a 403 error when attempting to access my Web App for Containers, despite having "Allow All" set in the networking blade of the app

User's image

According to documentation https://learn.microsoft.com/en-us/azure/container-apps/authentication#authorization , there should be an 'Allow unauthenticated access' and a 'Require authentication' option, however neither option is present after opening the Authentication blade of my Web App for Containers.

User's image

Temporarily adding an identity provider did not change the 403 behavior.

Ideally, authentication was supposed to be handled within the application database.

Docker logs indicate that the container was warmed up and ready to accept requests.

Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.

{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,331 Reputation points Microsoft Employee Moderator
    2023-07-06T23:33:48.8066667+00:00

    Hi @Anonymous

    For the Allow unauthenticated access and Require authentication options to show (screenshot below), you need to hit Add identity provider button on that page. However, since you don't have a provider listed, this wouldn't be the cause of your 403 error. If authentication is handled by a database in your docker image, then that more than likely is the issue, especially if your docker logs show that your app is accepting requests. I would suggest diagnosing that issue, starting with removing your authentication, followed by allow anonymous route, and slowing re-enabling your authentication.

    User's image

    0 comments No comments

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.