Closed burk3 closed 3 years ago
in our app, .svg's were not displaying in img tags due to the content-type returned by the server being text/plain instead of image/svg+xml.
text/plain
image/svg+xml
To fix, the gateway will return the appropriate content-type, image/svg+xml, for .svg files. As a bonus, .json files will return application/json.
application/json
referenced mime types from https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
let me close, sign-off, and re-open.
in our app, .svg's were not displaying in img tags due to the content-type returned by the server being
text/plain
instead ofimage/svg+xml
.To fix, the gateway will return the appropriate content-type,
image/svg+xml
, for .svg files. As a bonus, .json files will returnapplication/json
.referenced mime types from https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types