Accessing forge api route giveserror on Content Security Policy

const response = await api.asUser().requestConfluence(route/wiki/api/v2/attachments/983042);
fetch.js:14 Refused to connect to ‘https://confluence/wiki/api/v2/attachments/983042’ because it violates the following Content Security Policy directive: "connect-src ‘self’

I can choose whatever api url. As long as I put “route” in front of it, it gets transformed to https://confluence/urlPath and this will cause the error. Instead I would expect to resolve to https://mydomain.attlassian.net/urlPath.

What am I doing wrong?

@FalkoGieseke , did you ever resolve this? I’m having a similar issue…

Here are the changes that made it work. Use a different library: