Forums

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

useLoadScript.ts:54 Failed to load script: https://www.gstatic.com/charts/loader.js

Ankit kharola
Contributor
December 23, 2024

Trying to create a chart in my forge app using react-google-charts but i am facing an error where it says failed to load the script i have added the permission in my manifest file 

 

 

permissions:
 
    scopes:
      - read:jira-work
      - read:jira-user
    content:
      scripts:
      - 'unsafe-inline'
      styles:
        - unsafe-inline
i also tried 

 

- 'unsafe-hashes'

1 answer

0 votes
Tuncay Senturk
Community Champion
December 23, 2024

Hi @Ankit kharola 

Forge apps are highly restricted to include third-party scripts for security reasons (CSP). It works best with libraries that don’t require external script loading like Chart.js

I hope this helps, but remember that https://developer.atlassian.com/ is the best place to ask this question.

Suggest an answer

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

Atlassian Community Events