# Wrong content type detected by browser

**URL:** <https://forum.infinityfree.com/t/wrong-content-type-detected-by-browser/30021>\
**Category:** Hosting Support\
**Created:** [May 13, 2020, 3:01pm UTC](https://forum.infinityfree.com/t/wrong-content-type-detected-by-browser/30021 "2020-05-13T15:01:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon5231576](https://forum.infinityfree.com/letter_avatar/anon5231576/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon5231576](https://forum.infinityfree.com/u/anon5231576)\
**Post date:** [May 13, 2020, 3:01pm UTC](https://forum.infinityfree.com/t/wrong-content-type-detected-by-browser/30021/1 "2020-05-13T15:01:35Z")

</div>

I have a website [outre.ml](https://www.outre.ml). I created two subdomains [assets1.outre.ml](https://assets1.outre.ml) and [assets2.outre.ml](https://assets2.outre.ml) for delivering images. However, the images are blocked by the browser’s CORB. This happens because the browser recognises those jpeg images as text/html. How can I change the content type of those images?

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [May 13, 2020, 8:07pm UTC](https://forum.infinityfree.com/t/wrong-content-type-detected-by-browser/30021/2 "2020-05-13T20:07:55Z")

</div>

You’re right about the CORS issue, but I think you may have the cause and effect mixed up.

The reason you see the `text/html` content type is because our server is responding with HTML content instead of this image. The HTML content is provided by this security system:

> **[Ensuring only web browsers can access your website](https://forum.infinityfree.com/docs?topic=49353)**
>
> InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing,...

Because of this security system, embedding content from domains hosted with us onto other websites is not possible. This also happens if they are subdomains of the same domain and/or the domains are on the same hosting account.

The most straight forward way to fix this is simple: don’t use separate subdomains for delivering the images, and upload them directly to the main domain. After all, if you’re serving them from the same hosting account anyways, what’s the point?

Alternatively, you could upgrade to [premium hosting](https://infinityfree.net/premium/), which doesn’t have this restriction, or use an actual CDN to deliver the images (instead of a website account).

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [July 12, 2020, 8:07pm UTC](https://forum.infinityfree.com/t/wrong-content-type-detected-by-browser/30021/3 "2020-07-12T20:07:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
