I need external permission for GraphQL query in Forge, is that possible?

Hi,
When I call a library, such as “etherspot”, needs to call out for querying a GraphQL, what content type of the permission should I use?

I did try to add following permission in manifest.yml, but fail.

permissions:
external:
fetch:
backend:
- ‘https://etherspot.pillarproject.io

Error message in the javascript console as follow

Refused to connect to ‘https://etherspot.pillarproject.io/’ because it violates the following Content Security Policy directive: “connect-src ‘self’”.

(anonymous) @ browser-ponyfill.js:517

The library is called in a Custom UI of confluence macro app in Forge.
What permissions I should use?

Thanks in advance.

Ming

Hi @MingderWang, the fetch.backend declares where your app’s backend functions can connect to.

For frontend, you’ll want fetch.client instead https://developer.atlassian.com/platform/forge/manifest-reference/permissions/#client

1 Like

It works, great thinks.
Thanks for fast response too.

Ming

Adding to #codegeist-2021 for those following.