View | Details | Raw Unified | Return to bug 38365
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Middleware/ContentSecurityPolicy.t (-1 / +1 lines)
Lines 83-89 subtest 'test Content-Security-Policy header in a minimal environment' => sub { Link Here
83
        "Response contains Content-Security-Policy header with the expected value"
83
        "Response contains Content-Security-Policy header with the expected value"
84
    );
84
    );
85
    is(
85
    is(
86
        $res->content, '<script nonce="' . $test_nonce . '">' . "\n" . '</script>' . "\n",
86
        $res->content, "\n" . ' <script nonce="' . $test_nonce . '">' . "\n" . '</script>' . "\n",
87
        "Response contains generated nonce in the body"
87
        "Response contains generated nonce in the body"
88
    );
88
    );
89
89
(-)a/t/mock_templates/opac-tmpl/bootstrap/en/modules/opac-csp.tt (-2 / +2 lines)
Lines 1-2 Link Here
1
[% USE raw %][% USE Koha %]<script nonce="[% Koha.CSPNonce | $raw %]">
1
[% USE raw %][% USE Koha %]
2
 <script nonce="[% Koha.CSPNonce | $raw %]">
2
</script>
3
</script>
3
- 

Return to bug 38365