mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 10:42:34 +05:30
Добавлено nonce поле для скрипта, исправляющего fetch в Edge
This commit is contained in:
parent
81b3da18aa
commit
9c975aa8cf
@ -14,7 +14,7 @@
|
|||||||
<link rel="shortcut icon" href="<%= htmlWebpackPlugin.files.favicon %>">
|
<link rel="shortcut icon" href="<%= htmlWebpackPlugin.files.favicon %>">
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<script>
|
<script nonce="edge-must-die">
|
||||||
if (/Edge\/(must die)?/.test(navigator.userAgent)) {
|
if (/Edge\/(must die)?/.test(navigator.userAgent)) {
|
||||||
// Edge has a broken fetch implementation, so forcing the polyfill
|
// Edge has a broken fetch implementation, so forcing the polyfill
|
||||||
// https://www.reddit.com/r/webdev/comments/57ii4f/psa_edge_14_ships_a_broken_windowfetch/
|
// https://www.reddit.com/r/webdev/comments/57ii4f/psa_edge_14_ships_a_broken_windowfetch/
|
||||||
|
@ -323,6 +323,7 @@ if (isCspEnabled) {
|
|||||||
'style-src': ['\'self\'', '\'unsafe-inline\''],
|
'style-src': ['\'self\'', '\'unsafe-inline\''],
|
||||||
'script-src': [
|
'script-src': [
|
||||||
'\'self\'',
|
'\'self\'',
|
||||||
|
'\'nonce-edge-must-die\'',
|
||||||
'\'unsafe-inline\'',
|
'\'unsafe-inline\'',
|
||||||
'https://www.google-analytics.com',
|
'https://www.google-analytics.com',
|
||||||
'https://www.google.com/recaptcha/',
|
'https://www.google.com/recaptcha/',
|
||||||
|
Loading…
Reference in New Issue
Block a user