# How to solve "MIME type" errors in deployed canisters?

**URL:** <https://forum.dfinity.org/t/how-to-solve-mime-type-errors-in-deployed-canisters/22998>\
**Category:** Programs & Applications\
**Created:** [September 13, 2023, 2:02pm UTC](https://forum.dfinity.org/t/how-to-solve-mime-type-errors-in-deployed-canisters/22998 "2023-09-13T14:02:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![timk11](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/timk11/32/9489_2.png) [@timk11](https://forum.dfinity.org/u/timk11)\
**Post date:** [September 14, 2023, 12:06pm UTC](https://forum.dfinity.org/t/how-to-solve-mime-type-errors-in-deployed-canisters/22998/2 "2023-09-14T12:06:41Z")

</div>

I’ve put in place this set of changes, helpfully recommended by AdamS in the ICP Developer Community Discord:

> You’ve set up your URLs wrong.  
> The assets dir is not a component of your URLs. assets contains static data, and is served from the root, same as generated data does not have `dist` in the URL.  
> And then you’ve set a script to be imported from `/src` , which isn’t included in the assets container at all, and which is superfluous; the bundler converts your JS code to a single file that’s already being loaded in `<head>` for you.  
> Delete the `<script>` tag from the `<body>` , and change the `<link>` tag to point to `/main.css` .

The CSS and embedded image now display correctly but still nothing is functioning. I also tried removing all references to the internet\_identity canister since this is not needed in the IC version, and deleted and re-deployed the full set of canisters. It now just gives this one error:

![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/1/13ae7154615c10a1555a120fefecafa923c5a00b.png)

This frontend (one of two) is now deployed at [https://qb7ig-qiaaa-aaaao-a2h3a-cai.icp0.io/](https://qb7ig-qiaaa-aaaao-a2h3a-cai.icp0.io/).

---

_[View the full topic](https://forum.dfinity.org/t/how-to-solve-mime-type-errors-in-deployed-canisters/22998)._
