# Error when creating plugin in Kibana 8.6 - Refused to execute script from 'url/bundles/plugin/dataDemo/1.0.0/dataDemo.plugin.js' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled

**URL:** <https://discuss.elastic.co/t/error-when-creating-plugin-in-kibana-8-6-refused-to-execute-script-from-url-bundles-plugin-datademo-1-0-0-datademo-plugin-js-because-its-mime-type-application-json-is-not-executable-and-strict-mime-type-checking-is-enabled/323924>\
**Category:** Kibana\
**Created:** [January 25, 2023, 1:46pm UTC](https://discuss.elastic.co/t/error-when-creating-plugin-in-kibana-8-6-refused-to-execute-script-from-url-bundles-plugin-datademo-1-0-0-datademo-plugin-js-because-its-mime-type-application-json-is-not-executable-and-strict-mime-type-checking-is-enabled/323924 "2023-01-25T13:46:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Post date:** [January 25, 2023, 1:46pm UTC](https://discuss.elastic.co/t/error-when-creating-plugin-in-kibana-8-6-refused-to-execute-script-from-url-bundles-plugin-datademo-1-0-0-datademo-plugin-js-because-its-mime-type-application-json-is-not-executable-and-strict-mime-type-checking-is-enabled/323924/1 "2023-01-25T13:46:11Z")

</div>

Hi,

I just started Kibana in development mode . It works.

I then created a plugin using plugin generator. When running kibana after that, it gives an error in the browser

Refused to execute script from '[http://ip/bundles/plugin/dataDemo/1.0.0/dataDemo.plugin.js](http://ip/bundles/plugin/dataDemo/1.0.0/dataDemo.plugin.js)' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.

Thanks

---

<div class="post-metadata">

**Author:** ![Tre\_Seymour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tre_seymour/32/46507_2.png) [@Tre\_Seymour](https://discuss.elastic.co/u/Tre_Seymour)\
**Post date:** [January 25, 2023, 4:07pm UTC](https://discuss.elastic.co/t/error-when-creating-plugin-in-kibana-8-6-refused-to-execute-script-from-url-bundles-plugin-datademo-1-0-0-datademo-plugin-js-because-its-mime-type-application-json-is-not-executable-and-strict-mime-type-checking-is-enabled/323924/2 "2023-01-25T16:07:23Z")

</div>

Hello there @Sheereen

What version are you working with?

Also, may I see a screenshot of the error?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 22, 2023, 4:08pm UTC](https://discuss.elastic.co/t/error-when-creating-plugin-in-kibana-8-6-refused-to-execute-script-from-url-bundles-plugin-datademo-1-0-0-datademo-plugin-js-because-its-mime-type-application-json-is-not-executable-and-strict-mime-type-checking-is-enabled/323924/3 "2023-02-22T16:08:12Z")

</div>

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