MDN self-hosted library · e01.org

content_security_policy

<table class="fullwidth-table standard-table"> <tbody> <tr> <th scope="row">Type</th> <td><code>String</code></td> </tr> <tr> <th scope="row">Mandatory</th> <td>No</td> </tr> <tr> <th scope="row">Manifest version</th> <td>2 or higher</td> </tr> <tr> <th scope="row">Example</th>

no runnable cells webextension-manifest-key upstream source
Type String
Mandatory No
Manifest version 2 or higher
Example Manifest V2:
"content_security_policy": "default-src 'self'"
Manifest V3:
"content_security_policy": {
  "extension_pages": "default-src 'self'"
}

Extensions have a content security policy (CSP) applied to them by default. The default policy restricts the sources from which extensions can load code (such as \