Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to load the avatar icon using the given link getting this content policy error

Sakthivel Sekar November 8, 2023

Refused to load the image '<URL>' because it violates the following Content Security Policy directive: "img-src 'self' data: blob: <URL> <URL> <URL>".

localhost/:1 Refused to load the image 'https://i2.wp.com/avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/NM-6.png?ssl=1' because it violates the following Content Security Policy directive: "img-src 'self' data: blob: https://secure.gravatar.com https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net https://api.atlassian.com".






this is my code am i doing something wrong 

<Avatar alt={value.displayName} src={value.icon} />


and this is the manifest
modules:
jira:globalPage:
- key: test
resource: main
resolver:
function: resolver
title: adminpanel
function:
- key: resolver
handler: index.handler
permissions:
scopes:
- "write:jira-work"
- "read:jira-work"
- "read:user:jira"
- "read:application-role:jira"
- "read:avatar:jira"
- "read:group:jira"
- "read:sprint:jira-software"
- "read:jira-user"
content:
scripts:
- unsafe-inline
styles:
- "unsafe-inline"
external:
fetch:
backend:
- '*.gravatar.com/'
resources:
- key: main
path: static/hello-world/build
tunnel:
port: 3000

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events