# Class (PermissionRequest)
Implements the **PermissionRequest** object. For details about the sample code, see [onPermissionRequest](./arkts-basic-components-web-events.md#onpermissionrequest9).
> **NOTE**
>
> - The initial APIs of this component are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
>
> - The initial APIs of this class are supported since API version 9.
>
> - You can preview how this component looks on a real device, but not in DevEco Studio Previewer.
## constructor9+
constructor()
Constructs a **PermissionRequest** object.
**System capability**: SystemCapability.Web.Webview.Core
## deny9+
deny(): void
Denies the permission requested by the web page.
**System capability**: SystemCapability.Web.Webview.Core
## getOrigin9+
getOrigin(): string
Obtains the origin of this web page.
**System capability**: SystemCapability.Web.Webview.Core
**Return value**
| Type | Description |
| ------ | ------------ |
| string | Origin of the web page that requests the permission.|
## getAccessibleResource9+
getAccessibleResource(): Array\
Obtains the list of accessible resources requested for the web page. For details about the resource types, see [ProtectedResourceType](./arkts-basic-components-web-e.md#protectedresourcetype9).
**System capability**: SystemCapability.Web.Webview.Core
**Return value**
| Type | Description |
| --------------- | ------------- |
| Array\ | List of accessible resources requested by the web page.|
## grant9+
grant(resources: Array\): void
Grants the permission for resources requested by the web page.
**System capability**: SystemCapability.Web.Webview.Core
**Parameters**
| Name | Type | Mandatory | Description |
| --------- | --------------- | ---- | --------------- |
| resources | Array\ | Yes | List of resources that can be requested by the web page with the permission to grant.|