Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Nov 2, 2023
2 parents b488764 + 1f4df6d commit 984c1d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,5 @@ https://github.com/damienbod/bff-auth0-aspnetcore-angular
https://github.com/damienbod/bff-openiddict-aspnetcore-angular

https://github.com/damienbod/bff-azureadb2c-aspnetcore-angular

https://github.com/damienbod/bff-MicrosoftEntraExternalID-aspnetcore-angular
6 changes: 3 additions & 3 deletions server/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
// The nonce is passed to the client through the HTML to avoid sync issues between tabs
source = source.Replace("**PLACEHOLDER_NONCE_SERVER**", nonce);

var nonceScript = $"<script nonce=\"{nonce}\" type=";
source = source.Replace("<script type=", nonceScript);
var nonceScript = $"<script nonce=\"{nonce}\" ";
source = source.Replace("<script ", nonceScript);

// link rel="stylesheet"
var nonceLinkStyle = $"<link nonce=\"{nonce}\" rel=\"stylesheet";
Expand All @@ -40,4 +40,4 @@
Response.Cookies.Append("XSRF-RequestToken", requestToken ?? "", new CookieOptions() { HttpOnly = false, IsEssential = true, Secure = true, SameSite = SameSiteMode.Strict });
}

@Html.Raw(source)
@Html.Raw(source)

0 comments on commit 984c1d9

Please sign in to comment.