如何使用IE模式在边缘铬中启用X-UA兼容的元标记?
我有一个ASP.NET Web表单网站,该网站在IE模式下在边缘铬中运行。 要将IE模式网站启用分发给域用户,我已经定义了一个组策略和使用企业模式网站列表管理器的XML网站列表文件。网站列表文件如下:
<created-by>
<tool>EMIESiteListManager</tool>
<version>12.0.0.0</version>
<date-created>25/04/2022 16:35:57</date-created>
</created-by>
<site url="myintranetdomain.com">
<compat-mode>IE8Enterprise</compat-mode>
<open-in>IE11</open-in>
</site>
</site-list>
大多数网站页面无问题工作,但是有些页面需要使用“ X-ua兼容”元标记执行:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
如果我手动启用Edge IE模式,则处理此META标签。这些页面正常工作。但是,如果我在企业模式网站列表文件中定义站点,则忽略该元标记。 Microsoft文档也说明了此行为。 有什么方法可以将Edge IE模式站点启用分配给许多没有Enterprise Mode站点列表文件的用户,还是有其他方法来定义站点列表文件? 我尝试了“ &lt; compat-mode&gt;
”和“ &lt; open-in-in-in-in-in-in-in-in-code>
”的所有值,但它行不通。
I have an ASP.NET Web Forms website that works in Edge Chromium with IE Mode.
To distribute the IE Mode website enablement to the domain user I have defined a Group Policy and a XML site list file with the Enterprise Mode Site List Manager. The site list file is like the following:
<created-by>
<tool>EMIESiteListManager</tool>
<version>12.0.0.0</version>
<date-created>25/04/2022 16:35:57</date-created>
</created-by>
<site url="myintranetdomain.com">
<compat-mode>IE8Enterprise</compat-mode>
<open-in>IE11</open-in>
</site>
</site-list>
Most of the website pages work without problems, but some pages need to be executed with the “X-UA-Compatible” meta tag:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
If I enable the Edge IE Mode manually this meta tag is processed and these pages work fine. But if I define the site in Enterprise Mode Site List file this meta tag is ignored. This behavior is illustrated in the Microsoft documentation too.
Is there any way to distribute the Edge IE Mode site enablement to many user without the Enterprise Mode Site List file or is there another way to define the Site List file?
I have tried all the values of “<compat-mode>
” and “<open-in>
” in the Site List file but it doesn’t work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了使用企业模式站点列表文件执行其他测试的解决方案。允许在IE模式下通过两个页面类型的组策略启用功能(带有和不带有
x-ua兼容
meta标签)必须设置为“ 默认”。因此,企业模式站点列表文件将如下:
I have found the solution executing other tests with the Enterprise Mode Site List file. To allow the functioning in IE Mode enabled via Group Policy of both the pages types (with and without the
X-UA-Compatible
meta tag) the<compat-mode>
must be set to "Default".So the Enterprise Mode Site List file will be like the following: