嵌入式网页无法在 iis 服务器上运行

Embedded web page not working on iis server

在我的网页中,我正在做这样的事情,

<object type="text/html"
    data="/media/examples/webpage"
    width="250"
    height="200">
</object>

它在 Visual Studio 中工作正常,但是当部署在 iis 服务器上时,页面未加载,我不知道为什么?

您需要为网页添加后缀。

如果我使用 data="/media/examples/webpage" ,它无法加载。

然而,它在设置 data="/media/examples/webpage.html" 后有效。

我发现了问题所在,我更改了 IIS 服务器上的 X-Frame-Options