I’m developing an Addon for Firefox, and I try to display Jira Avatar on a Github based on ticket related to my Pull Request.
So I get an avatar in the REST call https://myproject.atlassian.net/rest/api/latest/issue/AA-1234 with
assignee.avatarUrls.16x16, and I create a with the url as
src. The issue is that Github does not allow it due to his CSP img-src
So I tried to fetch the image, convert it into base64 data, which is allowed into Github.
But due to missing CORS Header Access-Control-Allow-Origin, I can’t :
Test code: Edit fiddle - JSFiddle - Code Playground
Do you know why this is missing?