# Issue with manifest v\>5: domain permissions (fetch error)

**URL:** <https://forums.creativeclouddeveloper.com/t/issue-with-manifest-v-5-domain-permissions-fetch-error/4714>\
**Category:** UXP Plugin API\
**Created:** [May 24, 2022, 2:18pm UTC](https://forums.creativeclouddeveloper.com/t/issue-with-manifest-v-5-domain-permissions-fetch-error/4714 "2022-05-24T14:18:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndresLP](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AndresLP](https://forums.creativeclouddeveloper.com/u/AndresLP)\
**Post date:** [May 24, 2022, 2:18pm UTC](https://forums.creativeclouddeveloper.com/t/issue-with-manifest-v-5-domain-permissions-fetch-error/4714/1 "2022-05-24T14:18:10Z")

</div>

Hi, we are developing a plugin that uses “fetch” to make calls to a REST API. After testing it with manifest v5, it’s not longer working (it was working correctly with version 4) .The console error message is the following:

> “index.js:207 error calling FM DAPI: Plugin is not permitted to access the network apis. A valid domains entry is required in requiredPermissions.network field of the manifest.”

We have included the domain in “requiredPerminsions”, but still get the same error. This is what we have included in the manifest json:

```auto
  "requiredPermissions": {
        "network": { 
          "domains": ["https://our.domain.com"]
        }}

```

Have also tested with:

```auto
  "requiredPermissions": {
        "network": { 
          "domains": "all"
        }}

```

And:

```auto
  "requiredPermissions": {
        "network": { 
          "domains": ["all"]
        }}

```

No luck so far though.

The only documentation we’ve found about manifest v5 is in the below links:

```auto

https://www.davidebarranca.com/development/adobe-uxp-things-you-need-to-know-manifest-5

https://medium.com/adobetech/big-updates-coming-to-uxp-3185f0e47130

https://github.com/AdobeDocs/uxp-photoshop/pull/290/files

```

Any tips about this issue? are there any other sources of information we can check regarding manifest versions after 5?

Any insights would be greatelly appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [May 24, 2022, 10:30pm UTC](https://forums.creativeclouddeveloper.com/t/issue-with-manifest-v-5-domain-permissions-fetch-error/4714/2 "2022-05-24T22:30:37Z")

</div>

Your first two examples look correct. That you’re still getting the error indicates (to me) that the manifest you’re editing is not the manifest that the plugin is using at runtime.

1. How are you loading your plugin?
  - If you made changes after loading in UDT, make sure to ••• \> Load the plugin again (reloading is insufficient to load changes to the manifest).

2. Are you using React / Webpack?
  - If so, make sure your manifest change is being applied to your build folder (usually `dist`).

(Your third example won’t work at all, so don’t bother with that. That’s just specifying that you can only access a url with name `all`)

CC @pkrishna , @Sujai

---

<div class="post-metadata">

**Author:** ![AndresLP](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AndresLP](https://forums.creativeclouddeveloper.com/u/AndresLP)\
**Post date:** [May 25, 2022, 7:48am UTC](https://forums.creativeclouddeveloper.com/t/issue-with-manifest-v-5-domain-permissions-fetch-error/4714/3 "2022-05-25T07:48:15Z")

</div>

Thank you for your reply Kerri. I fixed it! I was doing a silly mistake … I had the “requiredPermissions” property as part of the host. I took it outside the array and now it works perfectly 😅

This was the wrong json:

```auto
 "manifestVersion": 5,
  "host": [
    {
      "app": "PS",
      "minVersion": "23.3",
      "requiredPermissions": {
        "network": { 
          "domains": "all"
        }}
    }
  ]

```

This is the correct version:

```auto
"manifestVersion": 5,
  "host": [{
    "app":"PS", 
    "minVersion":"23.3"
  }],
  "requiredPermissions": {
    "network": {
      "domains": "all"
    }
  }

```

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [May 25, 2022, 7:51am UTC](https://forums.creativeclouddeveloper.com/t/issue-with-manifest-v-5-domain-permissions-fetch-error/4714/4 "2022-05-25T07:51:21Z")

</div>

> [@AndresLP](#):
>
> `"manifestVersion": 6`

😲 Are there any docs on this version? Or a blog post?

---

<div class="post-metadata">

**Author:** ![AndresLP](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AndresLP](https://forums.creativeclouddeveloper.com/u/AndresLP)\
**Post date:** [May 25, 2022, 8:03am UTC](https://forums.creativeclouddeveloper.com/t/issue-with-manifest-v-5-domain-permissions-fetch-error/4714/5 "2022-05-25T08:03:14Z")

</div>

Good point! it should be 5 (I just changed it). I think I got a bit crazy trying options to fix the error and at some point got confused with the UDT version (I have 6.0.2).

---

<div class="post-metadata">

**Author:** ![IanBarber](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IanBarber](https://forums.creativeclouddeveloper.com/u/IanBarber)\
**Post date:** [May 26, 2022, 1:35pm UTC](https://forums.creativeclouddeveloper.com/t/issue-with-manifest-v-5-domain-permissions-fetch-error/4714/6 "2022-05-26T13:35:30Z")

</div>

> [@AndresLP](#):
>
> “manifestVersion”: 6

Don’t frighten me, I am still working through the manifest 5 docs 🤣
