Skip to content

Commit

Permalink
Address Turbo-related CSP errors on first load (#148)
Browse files Browse the repository at this point in the history
* Partially address Turbo-related CSP errors

* Simplify
  • Loading branch information
florimondmanca authored Feb 23, 2023
1 parent cd29274 commit 857d57d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% set _nonce = csp_nonce('script') %}
{% set _nonce = csp_nonce('style') %}
<meta name="csp-nonce" content="{{ _nonce }}">

<link rel="apple-touch-icon" href="{{ asset('build/dsfr/favicon/apple-touch-icon.png') }}"><!-- 180×180 -->
<link rel="icon" href="{{ asset('build/dsfr/favicon/favicon.svg') }}" type="image/svg+xml">
<link rel="shortcut icon" href="{{ asset('build/dsfr/favicon/favicon.ico') }}" type="image/x-icon"><!-- 32×32 -->
Expand Down

0 comments on commit 857d57d

Please sign in to comment.