feat: improve security headers and csp nonce handling
This commit is contained in:
@@ -313,7 +313,8 @@ function getBaseUrl() {
|
||||
* @param string $jsonLd Données JSON-LD
|
||||
*/
|
||||
function outputJsonLd($jsonLd) {
|
||||
echo '<script type="application/ld+json">' . "\n" . $jsonLd . "\n" . '</script>' . "\n";
|
||||
$nonce = getCspNonce();
|
||||
echo '<script type="application/ld+json" nonce="' . $nonce . '">' . "\n" . $jsonLd . "\n" . '</script>' . "\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user