Details
-
Improvement
-
Resolution: Unresolved
-
Medium
-
2.5.13, 3.2.1
-
None
Description
The admin UI is full of code link this:
<svg class="ez-icon ez-icon-medium ez-icon-dark ez-spin"> <use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#spinner">. </use> </svg>
This raises two problems
1) `xlink:href` is deprecated in the browsers
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use
- https://www.w3.org/TR/SVG/linking.html#XLinkRefAttrs
2) There is no support for cross-origin policy on the `use` element
See Mozilla documentation above.
This makes it impossible to load assets on separate domains, eg a CDN.
There is no way that https://www.ibexa.co/ could refers to its assets on https://static.ibexa.co/ when svg's are made like this.