Skip to content

Commit 751a5f8

Browse files
Merge branch 'main' into bhagatshweta-appinsights
2 parents 46d371e + 0cc46c8 commit 751a5f8

File tree

4 files changed

+61
-40
lines changed

4 files changed

+61
-40
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Add-SPOContentSecurityPolicy.md

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,27 @@ ms.reviewer:
1515

1616
## SYNOPSIS
1717

18-
Adds an entry to the **Content Security Policy** configuration.
18+
Adds a source to the **Content Security Policy** configuration.
1919

2020
## SYNTAX
2121

2222
### Default
2323

2424
```powershell
25-
Add-SPOContentSecurityPolicy [-Url] <String> [-Directive] <String>
25+
Add-SPOContentSecurityPolicy [-Source] <String>
2626
```
2727

2828
## DESCRIPTION
2929

30-
Adds an entry to the **Content Security Policy** configuration.
31-
The url in each entry will be added to the corresponding directive during construction of the Content-Security-Policy header.
32-
In multi-geo environments **Content Security Policy** entries are unique to each geo.
33-
Entries with a "*" directive will be applied to all directives.
30+
Adds a source to the **Content Security Policy** configuration.
31+
The source will be added to the `script-src` directive during construction of the `Content-Security-Policy` header.
32+
In multi-geo environments, **Content Security Policy** configuration is unique to each geo.
3433

3534
## PARAMETERS
3635

37-
### -Url
36+
### -Source
3837

39-
Url to allow as part of this **Content Security Policy** entry.
38+
Source to be added to the **Content Security Policy** configuration.
4039

4140
```yaml
4241
Type: String
@@ -45,25 +44,7 @@ Aliases:
4544
Applicable: SharePoint Online
4645

4746
Required: True
48-
Position: Named
49-
Default value: None
50-
Accept pipeline input: False
51-
Accept wildcard characters: False
52-
```
53-
54-
### -Directive
55-
56-
Directive to allow as part of this **Content Security Policy** entry.
57-
Currently allowed values are "*", "script-src" and "worker-src".
58-
59-
```yaml
60-
Type: String
61-
Parameter Sets: (All)
62-
Aliases:
63-
Applicable: SharePoint Online
64-
65-
Required: True
66-
Position: Named
47+
Position: 0
6748
Default value: None
6849
Accept pipeline input: False
6950
Accept wildcard characters: False
@@ -74,3 +55,5 @@ Accept wildcard characters: False
7455
[Get-SPOContentSecurityPolicy](Get-SPOContentSecurityPolicy.md)
7556
7657
[Remove-SPOContentSecurityPolicy](Remove-SPOContentSecurityPolicy.md)
58+
59+
[Content Security Policy source values](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources#sources)

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOContentSecurityPolicy.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.reviewer:
1515

1616
## SYNOPSIS
1717

18-
Returns all entries in the current **Content Security Policy** configuration.
18+
Returns all sources in the current **Content Security Policy** configuration.
1919

2020
## SYNTAX
2121

@@ -27,11 +27,12 @@ Get-SPOContentSecurityPolicy
2727

2828
## DESCRIPTION
2929

30-
Returns all entries in the current **Content Security Policy** configuration.
31-
The url in each entry will be added to the corresponding directive during construction of the `Content-Security-Policy` header.
30+
Returns all sources in the current **Content Security Policy** configuration.
3231

3332
## RELATED LINKS
3433

3534
[Add-SPOContentSecurityPolicy](Add-SPOContentSecurityPolicy.md)
3635

3736
[Remove-SPOContentSecurityPolicy](Remove-SPOContentSecurityPolicy.md)
37+
38+
[Content Security Policy source values](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources#sources)

sharepoint/sharepoint-ps/sharepoint-online/Remove-SPOContentSecurityPolicy.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ ms.reviewer:
1515

1616
## SYNOPSIS
1717

18-
Removes entries from the **Content Security Policy** configuration.
18+
Removes a source from the **Content Security Policy** configuration.
1919

2020
## SYNTAX
2121

2222
### Default
2323

2424
```powershell
25-
Remove-SPOContentSecurityPolicy [-Url] <String>
25+
Remove-SPOContentSecurityPolicy [-Source] <String>
2626
```
2727

2828
## DESCRIPTION
2929

30-
Removes all entries associated with the given url from the **Content Security Policy** configuration.
31-
In multi-geo environments, **Content Security Policy** entries are unique to each geo.
30+
Removes the given source from the **Content Security Policy** configuration.
31+
In multi-geo environments, **Content Security Policy** configuration is unique to each geo.
3232

3333
## PARAMETERS
3434

35-
### -Url
35+
### -Source
3636

37-
Url of the **Content Security Policy** entries to be removed.
37+
Source to be removed from the **Content Security Policy** configuration.
3838

3939
```yaml
4040
Type: String
@@ -54,3 +54,5 @@ Accept wildcard characters: False
5454
[Get-SPOContentSecurityPolicy](Get-SPOContentSecurityPolicy.md)
5555
5656
[Add-SPOContentSecurityPolicy](Add-SPOContentSecurityPolicy.md)
57+
58+
[Content Security Policy source values](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources#sources)

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ Set-SPOTenant
156156
[-CoreDefaultLinkToExistingAccess <Boolean>]
157157
[-SelfServiceSiteCreationDisabled <Boolean>]
158158
[-SyncAadB2BManagementPolicy <Boolean>]
159-
[-ContentSecurityPolicyConfigSynced <Boolean>]
159+
[-ResyncContentSecurityPolicyConfigurationEntries <Boolean>]
160+
[-EnforceContentSecurityPolicy <Boolean>]
160161
[-DocumentUnderstandingModelScope <SyntexFeatureScopeValue>]
161162
[-DocumentUnderstandingModelSelectedSitesList [String[]]]
162163
[-DocumentUnderstandingModelSelectedSitesListOperation <SelectedSitesListOperations>]
@@ -167,6 +168,7 @@ Set-SPOTenant
167168
[-PrebuiltModelScope <SyntexFeatureScopeValue>]
168169
[-PrebuiltModelSelectedSitesList [String[]]]
169170
[-PrebuiltModelSelectedSitesListOperation <SelectedSitesListOperations>]
171+
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>]
170172
[<CommonParameters>]
171173
```
172174

@@ -3010,10 +3012,26 @@ Accept wildcard characters: False
30103012

30113013
### -ResyncContentSecurityPolicyConfigurationEntries
30123014

3013-
When set to `True`, forces a sync of **Content Security Policy** entries for SharePoint framework component in the tenant application catalog.
3014-
New entries will be added to the configuration, if not already present, based on the `cdnBasedPath` property under a solution's `.config/write-manifests.json` if present.
3015+
When set to `True`, forces a sync of **Content Security Policy** sources for SharePoint Framework components in the tenant application catalog.
3016+
New sources will be added to the configuration, if not already present, based on the `cdnBasedPath` property under a solution's `.config/write-manifests.json` if present.
30153017
The sync may take up to 24 hours to complete.
3016-
In multi-geo environments, **Content Security Policy** entries are unique to each geo.
3018+
In multi-geo environments, **Content Security Policy** configuration is unique to each geo.
3019+
3020+
```yaml
3021+
Type: Boolean
3022+
Parameter Sets: (All)
3023+
Applicable: SharePoint Online
3024+
Required: False
3025+
Position: Named
3026+
Default value: False
3027+
Accept pipeline input: False
3028+
Accept wildcard characters: False
3029+
```
3030+
3031+
### -EnforceContentSecurityPolicyConfiguration
3032+
3033+
When set to `True` **Content Security Policy** violations will be enforced.
3034+
In multi-geo environments, **Content Security Policy** configuration is unique to each geo.
30173035

30183036
```yaml
30193037
Type: Boolean
@@ -3248,6 +3266,23 @@ Accept pipeline input: False
32483266
Accept wildcard characters: False
32493267
```
32503268

3269+
### -AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled
3270+
Enables or disables web property bag update when DenyAddAndCustomizePages is enabled. When AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled is set to $true, web property bag can be updated even if DenyAddAndCustomizePages is turned on when the user had AddAndCustomizePages (prior to DenyAddAndCustomizePages removing it).
3271+
3272+
PARAMVALUE: $true | $false
3273+
3274+
```yaml
3275+
Type: Boolean
3276+
Parameter Sets: (All)
3277+
Applicable: SharePoint Online
3278+
Required: False
3279+
Position: Named
3280+
Default value: False
3281+
Accept pipeline input: False
3282+
Accept wildcard characters: False
3283+
```
3284+
3285+
32513286
## RELATED LINKS
32523287

32533288
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)

0 commit comments

Comments
 (0)