Forums

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

it violates the following Content Security Policy directive: "script-src 'self'

Ankit kharola December 17, 2024

I am trying to use react-google-charts in my forge app and i am facing this issue where i am not able to load the chart the error i am recieving is 

loader.js:131 Refused to load the script 'https://www.gstatic.com/charts/51/loader.js' because it violates the following Content Security Policy directive: "script-src 'self' 

I have added 

 

permissions:
  external:
    scripts:
     
      - 'https://www.gstatic.com/charts/loader.js' in my manifest 

1 answer

Ankit kharola December 18, 2024

yes i have read the documentation it suggests we can add external scripts inside permissions so it doesnt violate the CSP i have already added that 

permissions:
  external:
    scripts:
     

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