Skip to content

Commit

Permalink
Csp: anonymous get
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbannov committed Dec 8, 2023
1 parent 73e5b23 commit 9f47f8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/ASC.Web.Api/Api/SecurityController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,11 @@ public async Task<CspDto> Csp(CspRequestsDto request)
return new CspDto { Domains = request.Domains, Header = header };
}

[AllowAnonymous]
[HttpGet("csp")]
public async Task<CspDto> Csp()
{
await _permissionContext.DemandPermissionsAsync(SecurityConstants.EditPortalSettings);
//await _permissionContext.DemandPermissionsAsync(SecurityConstants.EditPortalSettings);
var settings = await _cspSettingsHelper.LoadAsync();
return new CspDto
{
Expand Down

0 comments on commit 9f47f8b

Please sign in to comment.