public class OnlyLocalRequestsAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(HttpActionContext actionContext)
{
if (!actionContext.Request.IsLocal())
{
throw new HttpResponseException(HttpStatusCode.NotFound);
}
}
}
So only localhost works but we can't put localhost in Azure case.
Azure Keep Alive Url vs Local Keep Alive Url
We are getting lot of 404 errors in Azure Application Insights with URL https://my-umbraco-cms.azurewebsites.net/umbraco/api/keepalive/ping
Interestingly when I run the application in local it works as expected https://localhost:44335/umbraco/api/keepalive/ping
If it does not work in Azure should we disable it using,
As far as I understand it has,
So only localhost works but we can't put localhost in Azure case.
is working on a reply...