---
url: /reference/manifest/permissions.md
---

# Permissions

`permissions` 定义应用使用的权限信息。

## 结构

结构定义如下：

```yaml
permissions {}
├─ scopes [] [Mandatory]
├─ external {} [Optional]
│  ├─ fetch {} [Optional]
│  │  ├─ backend [] [Optional]
│  │  └─ client [] [Optional]
│  ├─ fonts [] [Optional]
│  ├─ styles [] [Optional]
│  ├─ frames [] [Optional]
│  ├─ images [] [Optional]
│  ├─ media [] [Optional]
│  └─ scripts [] [Optional]
└─ content {} [Optional]
```

## 示例

简单配置示例：

```yaml
permissions:
  scopes:
    - pcp:storage:app
    - pcp:read:app:token
    - pcp:read:user:token
    - pcp:read:pjm:workitem
    - pcp:write:pjm:workitem
  external:
    fetch:
      backend: 
        - remote: remote-backend
      client:
        - "https://*.example.com"
  content:
    scripts:
      - unsafe-hashes
```

## 属性

属性定义如下：
