Closed adayinthelifeofapro closed 1 month ago
Hi @adayinthelifeofapro
Can you confirm that you have the following line in your _ViewImports.cshtml
@addTagHelper *, Stott.Security.Optimizely
Obviously you're using the built in C# tag helper, theoretically both tag helpers should get used. I'll see if I can reproduce the issue.
@adayinthelifeofapro Also the order of the registered tag helpers can affect this, it might be worth checking the order in which they are applied.
@GeekInTheNorth I can confirm that I have added the tag helper as specified in the documentation, my _ViewImports.cshtml is quite basic and looks like this.
@adayinthelifeofapro Turns out a simple order property fixes that on the NonceTagHelper. HF 2.8.1 is incoming.
@GeekInTheNorth many thanks for sorting so quickly, I have just installed 2.8.1 and can confirm that the nonce values are now being added to the tags 👍
When using the following helper tags:
The nonce values when viewing the rendered page source look as follows: