Class GrantPermissionsCommandSettings
Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead.
public sealed class GrantPermissionsCommandSettings : ICommand
- Inheritance
-
GrantPermissionsCommandSettings
- Implements
- Inherited Members
Properties
BrowserContextId
BrowserContext to override permissions. When omitted, default browser context is used.
[JsonPropertyName("browserContextId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? BrowserContextId { get; set; }
Property Value
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
Origin
Origin the permission applies to, all origins if not specified.
[JsonPropertyName("origin")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Origin { get; set; }
Property Value
Permissions
Gets or sets the permissions
[JsonPropertyName("permissions")]
public PermissionType[] Permissions { get; set; }