tanem / svg-injector

:syringe: Fast, caching, dynamic inline SVG DOM injection library.
https://npm.im/@tanem/svg-injector
MIT License
101 stars 14 forks source link

httpRequest.overrideMimeType('text/xml') error in old chromium versions #1493

Open Ivan-accedo opened 4 months ago

Ivan-accedo commented 4 months ago

Hi!

In older chromium versions (tested in the 55) that are installed in some devices, forcing the mime-type to text/xml generates an invalid content type response header:

image

If I force the mime-type to image/svg+xml, works as expected, also in the last chrome version:

image