Base solution for your next web application
Open Closed

Getting 405 in while using azure front door #11098


User avatar
0
shedspotter created

What is your product version? 11.0.0

What is your product type (Angular or MVC)? Angular

What is product framework type (.net framework or .net core)? .NET 6

Hi, we are using azure front door to minmize the latency issue in our application but after enable the front door we found that front door is trying to access the URL HEAD /Ui/Login which basiclly return 405. You can see the application insights failure of last 6 hours where HEAD /Ui/Login is failing a alot. Can you help me to fixed that issue.

Thanks


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shedspotter

    Are you hosting Angular app and Host app under the same domain ? If so, could you share your app's URL ? If you don't want to share it publicly here, you can send it to [email protected].

    Thanks,

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you try to add below section to your web.config for the Azure app ? It seems like HEAD method is not allowed on your Azure app by default.

    <system.webServer>
        <httpProtocol>
          <customHeaders>
            <add name="Access-Control-Allow-Methods" value="GET, PUT, POST, DELETE, HEAD" />
          </customHeaders>
        </httpProtocol>
    </system.webServer>