Well, I’m not sure if someone waved a magic wand or what but I closed and reopened the issue editor and now the remote image is loading just great! I guess I had just been refreshing the page previously as that is typically all I need to do. Anyway, scratch that last question.
Thanks again for all the great work on the CSP extensions.
Hey @SamSmyth. I am using the confluence APIs to save attachments in confluence page using forge custom UI app.
I want to display those attachments in my IMG or audio HTML tag.
After fetching the URL using the confluence APIs and putting all the permission in manifest, the audio is still blocked by CSP.
I have also included the permission for it, still I’m not able to figure out why it’s blocking the resource. If you know about this error, please help.
Can you confirm that the domain listed in the error message matches the entry in the media: manifest property? If this is the case can you share with me a bit more detail about the error message (e.g. the exact message you are seeing), feel free to share this with me over a private message .
I was able to solve the previous problem, but now when I’m trying to record voice using mic and creating a URL using window.URL.createObjectURL of blob for playing the recorded audio, but I’m not able to play that It display error like this -
What do you suggest I include in my manifest to allow it to play?
Since it’s not a straight forward URL, it’s a blob URL. I’m a little confused and since it’s playing the audio, should I include it in my media permission inside manifest.yml.
Sadly we don’t currently support blob in our Content Security Policy. Would love if you could raise a ticket on our public feedback board to help us track and prioritise shipping this feature.
As we currently have an API to download confluence attachments, it is just about allowing that API scope. Can you please do that, I believe it is a quick fix.
We want to display images attached to Confluence content using Custom UI, but they are blocked by CSP. <img src="{siteUrl}/wiki/{attachment._links.download}" />
Refused to load the image 'https://api.media.atlassian.com/file/...' because it violates the following Content Security Policy directive: "img-src 'self' data: blob: [instance].atlassian.net https://secure.gravatar.com https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net https://api.atlassian.com".