# Content Security Policy issue on inline script

**URL:** <https://discourse.mozilla.org/t/content-security-policy-issue-on-inline-script/100696>\
**Category:** Development\
**Created:** [July 21, 2022, 4:02pm UTC](https://discourse.mozilla.org/t/content-security-policy-issue-on-inline-script/100696 "2022-07-21T16:02:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raskolnikov](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Raskolnikov](https://discourse.mozilla.org/u/Raskolnikov)\
**Post date:** [July 21, 2022, 4:02pm UTC](https://discourse.mozilla.org/t/content-security-policy-issue-on-inline-script/100696/1 "2022-07-21T16:02:48Z")

</div>

Hi, I am developping an extension that needs JS to work but it seems that in the extension context, my Firefox does not want to run thhe JS and I have this following error :  
“Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). moz-extension”.  
I specify that the JS I use is in a seperated file and he is called when I click on a button.

---

<div class="post-metadata">

**Author:** ![hans\_squared](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/hans_squared/32/67424_2.png) [@hans\_squared](https://discourse.mozilla.org/u/hans_squared)\
**Post date:** [July 21, 2022, 5:46pm UTC](https://discourse.mozilla.org/t/content-security-policy-issue-on-inline-script/100696/2 "2022-07-21T17:46:43Z")

</div>

That’s not enough information, at least for me.  
If you upload your extension somewhere, like Github, then maybe we can help you.

The best way to talk about code, is to show the code.
