Asp.net mvc Http2 PushPromise访问被拒绝异常
您好,我有下面一段代码,用于为Http2.0客户端启用PushPromiseAsp.net mvc Http2 PushPromise访问被拒绝异常,asp.net-mvc,azure,http2,azure-web-app-service,push-promise,Asp.net Mvc,Azure,Http2,Azure Web App Service,Push Promise,您好,我有下面一段代码,用于为Http2.0客户端启用PushPromise public static IHtmlString StyleSheet(this HtmlHelper htmlHelper, string contentPath) { UrlHelper urlHelper = new UrlHelper(htmlHelper.ViewContext.RequestContext); htmlHelper.ViewContext.RequestContext.H
public static IHtmlString StyleSheet(this HtmlHelper htmlHelper, string contentPath)
{
UrlHelper urlHelper = new UrlHelper(htmlHelper.ViewContext.RequestContext);
htmlHelper.ViewContext.RequestContext.HttpContext.Response.PushPromise(contentPath);
TagBuilder linkTagBuilder = new TagBuilder("link");
linkTagBuilder.Attributes.Add("rel", "stylesheet");
linkTagBuilder.Attributes.Add("href", urlHelper.Content(contentPath));
return new HtmlString(linkTagBuilder.ToString());
}
直到上周五,这一切都很正常,之后我开始得到拒绝访问的异常
我们已经在Azure应用程序服务上托管了我们的网站一年多了
一年后为什么失败了