]> BookStack Code Mirror - bookstack/commit
Finished off script CSP rules
authorDan Brown <redacted>
Sat, 4 Sep 2021 12:57:04 +0000 (13:57 +0100)
committerDan Brown <redacted>
Sat, 4 Sep 2021 12:57:04 +0000 (13:57 +0100)
commit253f386f006eb0bcdf1151008b75213e96c4edf9
tree8226da9ab1633f4c851801bdb5a7065835a06d2d
parentfd44e4ba74b7615e196dcafa4f1eddc634c0b44d
Finished off script CSP rules

- Added caching for custom html head parsing to add nonce.
- Also moved api docs page into web routes to prevent issues.
13 files changed:
app/Http/Middleware/ApplyCspRules.php
app/Providers/AppServiceProvider.php
app/Theming/CustomHtmlHeadContentProvider.php [new file with mode: 0644]
app/Util/CspService.php [new file with mode: 0644]
app/Util/HtmlNonceApplicator.php
resources/views/common/custom-head.blade.php
resources/views/common/export-custom-head.blade.php
resources/views/layouts/base.blade.php
resources/views/pages/edit.blade.php
routes/api.php
routes/web.php
tests/Api/ApiDocsTest.php
tests/SecurityHeaderTest.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.