Title: Refused to execute script
Last modified: August 31, 2016

---

# Refused to execute script

 *  [mikk_cz](https://wordpress.org/support/users/mikk_cz/)
 * (@mikk_cz)
 * [10 years ago](https://wordpress.org/support/topic/refused-to-execute-script/)
 * After upgrading from PHP 5.6 to PHP 7, I am facing an issue, where /?ai1ec_render_js
   =add_new_event.js&is_backend=true&ver=2.4.0 is being sent with text/html content
   type header resulting in not being executed in Chrome and the users are not able
   to create or edit events. The Chrome console output says:
    `Refused to execute
   script from 'https://DOMAIN.TLD/?ai1ec_render_js=add_new_event.js&is_backend=
   true&ver=2.4.0' because its MIME type ('text/html') is not executable, and strict
   MIME type checking is enabled.`
 * Looks like [https://github.com/thenly/all-in-one-event-calendar/issues/689](https://github.com/thenly/all-in-one-event-calendar/issues/689).
   If you need any additional information about the hosting environment, feel free
   to let me know.
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

Viewing 1 replies (of 1 total)

 *  [fodevaux](https://wordpress.org/support/users/fodevaux/)
 * (@fodevaux)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/refused-to-execute-script/#post-8925155)
 * I confirm having a similar issue, on Firefox and Explorer too.
    Here is the error
   on Explorer Script from [http://www.mysite.com/?ai1ec_render_js=add_new_event.js&is_backend=true&ver=2.5.17](http://www.mysite.com/?ai1ec_render_js=add_new_event.js&is_backend=true&ver=2.5.17)
   was blocked due to mime type mismatch

Viewing 1 replies (of 1 total)

The topic ‘Refused to execute script’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [fodevaux](https://wordpress.org/support/users/fodevaux/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/refused-to-execute-script/#post-8925155)
 * Status: not resolved