nonce is generating with + symbol but .net core is encoding it
mohdyasar opened this issue · 1 comments
mohdyasar commented
Hi we are using the middleware and its adding nonce but the issue is .net core 6.0. is encoding it while rendering
Actual NONCE generated in header is "+hyKZ6j52YWMS+/2quPZ6Eyzy6W1gW3JjHJXjn+z+bA="
The encoded header rendered in the script tag is below
<script nonce="+hyKZ6j52YWMS+/2quPZ6Eyzy6W1gW3JjHJXjn+z+bA=">
Due to the "+" symbol .net is encoding and the nonce is not matching any pointers please help.
thanks