I want to download image with asApp() and paste it other product with api.
I will show my code following.
const baseUrl = “https://example.atlassian.net/wiki”;
const downloadUrl = attachment._links.download;
const fullImageUrl = ${baseUrl}${downloadUrl}
;
const imageResponse = await asApp().requestConfluence(route`fullImageUrl`, { method: 'GET' });
console.log('imageResponse: ', imageResponse);
The baseUrl is my site url and downloadUrl is like following.
/download/attachments/{my-page-id}/{my-image-filename}?version=1&modificationDate=1731594031029&cacheVersion=1&api=v2
This won’t work because of disallowing path manipulation attempt.
Please tell me where to fix.