共用方式為


Add-SPOContentSecurityPolicy

將來源新增至 內容安全 策略組態。

語法

Default (預設值)

Add-SPOContentSecurityPolicy
    [-Source] <String>
    [<CommonParameters>]

Description

將來源新增至 內容安全 策略組態。 在建構Content-Security-Policy標頭期間,script-src會將來源新增至 指示詞。 在多地理位置環境中, 內容安全 策略設定對於每個地理位置都是獨一無二的。

參數

-Source

適用:SharePoint Online

要新增至 內容安全 策略組態的來源。

參數屬性

類型:System.String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

None

輸出

System.Object