DEV: Automatically extend CSP when themes link to external scripts (PR #9531)

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/adding-javascript-to-a-theme-in-head-not-working-userway/148799/8