共用方式為


PortalConfigCspProperties interface

開發人員入口網站內容安全策略 (CSP) 設定。

屬性

allowedSources

允許的來源,例如 *.trusted.comtrusted.comhttps://

mode

開發人員入口網站內容安全策略 (CSP) 的模式。

reportUri

瀏覽器用來報告 CSP 違規的 URL。

屬性詳細資料

allowedSources

允許的來源,例如 *.trusted.comtrusted.comhttps://

allowedSources?: string[]

屬性值

string[]

mode

開發人員入口網站內容安全策略 (CSP) 的模式。

mode?: string

屬性值

string

reportUri

瀏覽器用來報告 CSP 違規的 URL。

reportUri?: string[]

屬性值

string[]