Issue Bug Closed

#104125CSP violation of Sitemap.xsl in XML sitemap

Peter Kraume 06/16/24, 21:42 updated 06/18/24, 18:27

Description

The XML sitemap of EXT:seo contains a xml-stylesheet e.g. like this:

<?xml-stylesheet type="text/xsl" href="/_assets/984e6ee9829f85eb447bb6a36455204a/CSS/Sitemap.xsl"?>

When Content Security Policy is enabled for the frontend, the browser console issues an error:

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src-elem 'self' 'nonce-5SQacQND6pnXGXg2TxtAJVRyTvzSUddSm8lSmcx5XL7xTh7STYnqLA' 'report-sample'". Either the 'unsafe-inline' keyword, a hash ('sha256-d0ax6zoVJBeBpy4l3O2FJ6Y1L4SalCWw2x62uoJH15k='), or a nonce ('nonce-...') is required to enable inline execution.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.