We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1b6ec6 commit ccb27d0Copy full SHA for ccb27d0
server/Pages/_Host.cshtml
@@ -26,11 +26,11 @@
26
// The nonce is passed to the client through the HTML to avoid sync issues between tabs
27
source = source.Replace("**PLACEHOLDER_NONCE_SERVER**", nonce);
28
29
- var nonceScript = $"<script nonce={nonce} type=";
+ var nonceScript = $"<script nonce=\"{nonce}\" type=";
30
source = source.Replace("<script type=", nonceScript);
31
32
// link rel="stylesheet"
33
- var nonceLinkStyle = $"<link nonce={nonce} rel=\"stylesheet";
+ var nonceLinkStyle = $"<link nonce=\"{nonce}\" rel=\"stylesheet";
34
source = source.Replace("<link rel=\"stylesheet", nonceLinkStyle);
35
36
var xsrf = antiForgery.GetAndStoreTokens(HttpContext);
0 commit comments