Compare the MediaWiki home page (lines 6, 7, 302 in the source file): MediaWiki and the Wikipedia home page (lines 6,7, 444 in the source file) . The MediaWiki page has added the "nonce" attribute to the script tags so that, I presume, they can enforce a Content Security Policy on their site. I would like to do the same.
Which files do I need to edit to add a nonce attribute to precisely the same script tags as the MediaWiki admins have done? I have tried to grep for the script tags in my installation directory (MediaWiki 1.30.0) but blindly changing some of the script tag matches that I found did not make their way onto my site's home page.
Secondly, how have they added those nonce attributes? Primarily I would like to know where to edit the files, but it would be helpful to also know what to do. But I can always learn this myself; just to know where to make the edits is my primary concern.
Any help would be appreciated. I have tried searching for this information, but have found nothing. Thanks.