I set a breakpoint to the NonceTagHelper Process and it actually hits, runs through the output.Attributes.Add("nonce", _nonceService.GetNonce()); and I tested that the _nonceService.GetNonce() actually returns the nonce.
So everything seems to work as intended, expect that the nonce is not output to html. I'm dumbstruck, especially when the breakpoint shows that the code is actually ran.
Hi, and thanks for the great package! This is a weird one.
Nuget version 4.0.1, ASP NET Core 6.
ViewImports:
Startup:
_Layout.cshtml (with nonce as title for testing):
Generated html:
I set a breakpoint to the NonceTagHelper Process and it actually hits, runs through the
output.Attributes.Add("nonce", _nonceService.GetNonce());
and I tested that the _nonceService.GetNonce() actually returns the nonce.So everything seems to work as intended, expect that the nonce is not output to html. I'm dumbstruck, especially when the breakpoint shows that the code is actually ran.
Would you happen to have any ideas?