# refused to execute script because mime type

**URL:** <https://community.hubspot.com/t/refused-to-execute-script-because-mime-type/86319>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [July 27, 2023, 9:52pm UTC](https://community.hubspot.com/t/refused-to-execute-script-because-mime-type/86319 "2023-07-27T21:52:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SRodriguez23](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@SRodriguez23](https://community.hubspot.com/u/SRodriguez23)\
**Post date:** [July 27, 2023, 9:52pm UTC](https://community.hubspot.com/t/refused-to-execute-script-because-mime-type/86319/1 "2023-07-27T21:52:52Z")

</div>

Hi there, I was working to improve performance on our web page, but I have a couple of error consoles, the same error appears for each cta.

Refused to execute script from ‘/hs/cta/ctas/v2/public/cs/cta-loaded.js?pid=5442200&pg=fe2be66e-c4a3-4f0c-a688-7529d796dfda&lt=1690494162681&dt=1690494162683&at=1690494163178&an=1’ because its MIME type (‘’) is not executable, and strict MIME type checking is enabled.

if anyone has been the same error, appreciate any comment

---

<div class="post-metadata">

**Author:** ![DianaGomez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dianagomez/32/48035_2.png) [@DianaGomez](https://community.hubspot.com/u/DianaGomez)\
**Post date:** [July 27, 2023, 11:38pm UTC](https://community.hubspot.com/t/refused-to-execute-script-because-mime-type/86319/2 "2023-07-27T23:38:33Z")

</div>

Hi @SRodriguez23, I hope you are doing well!

Sometimes this is caused by a CTA module hidden on your page template (In the header, for example). You can find this on the line of code in your style sheet. In case this is the reason, here are two ways to fixed it:

- Remove the CTA from the header module
- Change the visibility of the module in the style sheet

I hope this helps,

Diana

---

<div class="post-metadata">

**Author:** ![SRodriguez23](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@SRodriguez23](https://community.hubspot.com/u/SRodriguez23)\
**Post date:** [July 28, 2023, 9:39pm UTC](https://community.hubspot.com/t/refused-to-execute-script-because-mime-type/86319/3 "2023-07-28T21:39:28Z")

</div>

hey @DianaGomez Thank you for your response. Today, the error has disappeared. I believe it may have been a problem with the CMS, as the issue appeared to be related to the CSS of each CTA. We hope this problem does not reoccur in the future.

greetings 🙂

---

<div class="post-metadata">

**Author:** ![DianaGomez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dianagomez/32/48035_2.png) [@DianaGomez](https://community.hubspot.com/u/DianaGomez)\
**Post date:** [July 31, 2023, 2:54pm UTC](https://community.hubspot.com/t/refused-to-execute-script-because-mime-type/86319/4 "2023-07-31T14:54:25Z")

</div>

Hi @SRodriguez23 😊

Thank you so much for letting us know! I’m happy to know that is fixed!

Best,

Diana
