Hey ya team. Coming across an issue when implementing the issue collector in regard to CSP.
We include it within HTML like so:
<script type="text/javascript" src="https://xxxx.atlassian.net/xxxxx/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-GB&collectorId=xxxx" nonce="{{ csp_nonce('script') }}"></script>
Which allows the script to run. But the inline styles within the script fail to be accepted by our CSP.
Error:
Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' ....
Is there a particular URL to add into style-src CSP? It complains about style-src-attr too which is not allowed in our CSP. I would’ve thought putting https://xxxx.atlassian.net in our style-src would solve the issue but still getting blocked. Any ideas?