I have a project where for all images sent back from the server de header Content-type is set to: “text/html; charset=UTF-8” resulting in not displaying my images by the browser. On localhost with node everything looks fine but serverd from render.com I get this header content-type back. Anyone on how I can change this?
Hi,
If you visit one your image URLs directly, you’ll likely see an HTML page, rather than an image. That would be the reason for an incorrect mime type.
If you’re using a Static Site, that likely means the image file doesn’t exist where you’re pointing.
If you’re using a Web Service, you’ll need to ensure your code is serving your images correctly.
Alan
1 Like
Hello Alan,
Thanks for your reply, It appeared to be indeed a probleem with the path to the images directory.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.