Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵兆

當您嘗試在 iframe 中開啟 Appinv.aspx 頁面時,頁面無法成功顯示。 發生此問題時,要求回應標頭包含「X-FRAME-OPTIONS:DENY」訊息。

原因

為了協助維護安全性,Appinv.aspx 頁面無法顯示在 iframe 中。

解決方案

若要解決這個問題,請安裝下列更新之一:

若要在信任的網域的 iframe 中顯示 Appinv.aspx 頁面,伺服器集系統管理員可以執行下列命令,新增信任的網域至伺服器庫中的 AllowIframeAppAuthorizePageDomains 清單:

add-pssnapin *
$f=get-spfarm
$f.AddGenericAllowedListValue("AllowIframeAppAuthorizePageDomains","<enable domain name>")
$f.update()

注意事項

  • 每使用一次命令,即可將一個信任的網域新增至 AllowIframeAppAuthorizePageDomains 清單。 此外,您也可以新增萬用字元網域 ,例如 *.contoso.comAllowIframeAppAuthorizePageDomains

  • 如果您收到以下錯誤訊息,當您呼叫AddGenericAllowedListValue方法時,請使用AllowIframeAppAuthorizePageDomains2代替AllowIframeAppAuthorizePageDomains

                
    「AllowIframeAppAuthorizePageDomains" already exists under the parent Microsoft.SharePoint.Administration.SPFarm named…

    此外,請確保您已安裝 Microsoft SharePoint Server 2022 年 3 月更新。

變更歷程記錄

 下表摘要說明本主題的一些最重要變更。

日期

描述

2022 年 3 月 8 日

在「解決方案」部分新增了一則備註,以在 AllowIframeAppAuthorizePageDomains 設定無法套用時提供修復。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×