fix: serve svg sprite locally for same-origin restrictions
This commit is contained in:
+5
-1
@@ -6,8 +6,12 @@ config.tx_replacer {
|
||||
# quotes - anchoring on `"` alone would skip every font.
|
||||
# typo3conf is scoped to ep_theme/Resources/Public on purpose: it keeps other
|
||||
# extensions, Configuration/ and Resources/Private/ out of the CDN.
|
||||
# The icon sprite is excluded: SVG <use href="...#icon"> may only reference a
|
||||
# document from the same origin - browsers block an external sprite on the CDN
|
||||
# host outright, and no CORS header on bunny.net changes that. It has to stay
|
||||
# on the origin domain or every icon renders empty.
|
||||
search {
|
||||
10 = /(["'])\/?(fileadmin|typo3temp|uploads|typo3conf\/ext\/ep_theme\/Resources\/Public)/
|
||||
10 = /(["'])\/?(fileadmin|typo3temp|uploads|typo3conf\/ext\/ep_theme\/Resources\/Public(?!\/images\/icons_sprite\.svg))/
|
||||
}
|
||||
|
||||
replace {
|
||||
|
||||
Reference in New Issue
Block a user