Injects the Content Security Policy (CSP) header in DokuWiki pages.
Compatible with DokuWiki
Download and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Content Security Policy helps preventing cross-site scripting (XSS) attacks. With the CSP header enabled, Firefox won't execute JavaScript code which is embedded in HTML documents. It also denies loading code from external places which are not authorized by the CSP header.
For further information, visit the following pages:
Define your Policy as appropriate via your site's Configuration Manager, under the Cspheader section.
Details for each CSP Directive can be found on MDN Web Docs. A direct link to each Directive's documentation is provided in the config page.
Please note that DokuWiki (and possibly at least some plugins) require the use of inline scripts. This means you should not create policies that completely forbid their use.
In develonly you can make use of a NONCE to authorize scripts created by DokuWiki only, while still be protected from maliciously injected inline scripts. To do so, you can use the NONCE
placeholder in your configuration. It will be automatically replaced by a one-time code on each request.
Eg. the script-src directive might use nonce-NONCE
resulting in a header script-src: 'nonce-1cccd1f6fb2939edd9fa9372b67017b3';
or similar.
The complete list of releases and change log is available on Github.
Full Git log.
Please refer to the plugin's Issue tracker on Github.
Requests for new features and enhancements should be filed on Github.
This plugin's original version was released in 2011 by Matthias Schulte, a.k.a lupo49. His last recorded maintenance activity on the project was in 2016, after which he stopped responding to submitted issues and pull requests.
In January 2021, Damien Regad decided to take over the plugin's maintenance, and integrate the changes he and Andi Gohr had submitted as pull requests.