Table of Contents
cspheader Plugin
Compatible with DokuWiki
- 2024-02-06 "Kaos" yes
- 2023-04-04 "Jack Jackrum" yes
- 2022-07-31 "Igor" yes
- 2020-07-29 "Hogfather" yes
Installation
Download and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Description
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:
Configuration and Settings
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.
Development
Revision history (Github releases)
The complete list of releases and change log is available on Github.
Recent commits
- Bump version to 2024-04-13 by dregad (2024-04-13 02:15)
- Fix typo by dregad (2024-04-13 02:15)
- Merge pull request #1 from cosmocode/nonce by dregad (2024-04-13 02:12)
- This adds support for the use of nonces by splitbrain (2024-04-10 15:41)
- Bump version to 2021-01-30 by dregad (2021-01-30 19:07)
Full Git log.
Known Bugs and Issues
Please refer to the plugin's Issue tracker on Github.
ToDo/Wish List
Requests for new features and enhancements should be filed on Github.
History / Credits
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.