Http标头已删除Azure Web应用程序 [英] Http headers removed Azure web app

查看:73
本文介绍了Http标头已删除Azure Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure上托管的Web应用程序出现问题.此应用程序是用于身份验证/授权的Identityserver4应用程序(asp.net核心).

I'm having issues with my web app hosted on Azure. This app is an identityserver4 application (asp.net core) used for authentication/authorization.

此应用程序可在本地运行,但不能在Azure上运行.通过跟踪来自服务器的响应标头以及到达最终客户端的响应标头.我可以看到某些标题消失了".

This app works locally but doesn't on Azure. By tracing the response headers coming from the server and what arrives to the final client. I can see that some headers "disappear".

为了确保它不仅与CORS相关,我添加了一个自定义标头X-TEST.再次可以在本地工作,但是在Azure上部署时会被剥夺.

To ensure it wasn't just related to CORS, I have added a custom header X-TEST. Again this works locally but gets stripped of when deployed on Azure.

除了Azure(和web.config)上的CORS刀片服务器之外,是否还有任何Azure选项可能导致这些标头消失?

Besides the CORS blade on Azure (and the web.config), is there any Azure options that might cause these headers to disappear ?

谢谢.

ps:这与

ps: This is related to another issue I have posted a week ago.

推荐答案

尝试使用https

(可能有效 Google会说您的网站是安全的...)

(it might work and google will say that your site is secure...)

此外,如果您可以灌输HTML,请使用和标签.

Also, if you can inculde HTML, use and tags.

希望这对您有帮助...

Hope this helps...

这篇关于Http标头已删除Azure Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆