script-src: {nonce} 'self' 'unsafe-inline'
Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline blockiert ("script-src"). 4 category-list
Inline Javascript (onclick)
<th scope="col" id="categorylist_header_title">
<a href="#"
onclick="Joomla.tableOrdering('a.title','asc','', document.getElementById('adminForm'));return false;"
class="hasPopover" title="" data-bs-content="Select to sort by this column" data-bs-placement="top" data-bs-original-title="Title">Title</a></th>
If Nonces are activated modern browsers ignore the rule 'unsafe-inline'.
We can't use the HTTP Header plugin with Nonces activated.
The inline scripts should be replaced by a document->addScriptDeclaration or similar. Then it will get a nonce.
Labels |
Added:
No Code Attached Yet
|
Title |
|
Title |
|
Yes unsafe-inline will be ignored when nonces are set and supported by the Browser.
And the solution proposal is correct too the Inline js call has to be converted into something thats pushed via the API so it can be allowed via hashes and nonces.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-02-13 12:50:14 |
Closed_By | ⇒ | ReLater |
Addition. Where the inline script comes from:
https://github.com/joomla/joomla-cms/blob/4.1.3/libraries/src/HTML/Helpers/Grid.php#L64