<PackageReference Include="System.Security.Permissions" Version="9.0.6" />

WebBrowserPermissionAttribute

Allows security actions for WebBrowserPermission to be applied to code using declarative security.
public WebBrowserPermissionLevel Level { get; set; }

Gets or sets the current Web browser permission level for the WebBrowserPermissionAttribute.

Initializes a new instance of the WebBrowserPermissionAttribute class with the specified SecurityAction.