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: 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...