Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nonce is generating with + symbol but .net core is encoding it #79

Open
mohdyasar opened this issue May 23, 2024 · 1 comment
Open

nonce is generating with + symbol but .net core is encoding it #79

mohdyasar opened this issue May 23, 2024 · 1 comment

Comments

@mohdyasar
Copy link

mohdyasar commented May 23, 2024

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="&#x2B;hyKZ6j52YWMS&#x2B;/2quPZ6Eyzy6W1gW3JjHJXjn&#x2B;z&#x2B;bA=">
Due to the "+" symbol .net is encoding and the nonce is not matching any pointers please help.

thanks

@marthijn
Copy link

I think this is fixed in PR #33 , @juunas11 can you merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants