1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Started application of CSP headers

This commit is contained in:
Dan Brown
2021-09-03 23:32:42 +01:00
parent 040997fdc4
commit fd44e4ba74
6 changed files with 124 additions and 40 deletions

View File

@ -1,5 +1,5 @@
@if(setting('app-custom-head') && \Route::currentRouteName() !== 'settings')
<!-- Custom user content -->
{!! setting('app-custom-head') !!}
{!! \BookStack\Util\HtmlNonceApplicator::apply(setting('app-custom-head'), $cspNonce) !!}
<!-- End custom user content -->
@endif