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

查看:27
本文介绍了已删除 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 上的 CORS 刀片(和 web.config)之外,是否有任何 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

(它可能会工作谷歌会说你的网站是安全的......)

(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天全站免登陆