-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Add remarks on avoiding inline JS #34431
Conversation
cc: @tdykstra ... The build report says ...
|
Change ms.author to riande. |
@jbaumflek ... Ok, so we have our answer from Javier ... don't recommend inline JS at all, and we'll just leave the CSP article as it currently is with its remarks about hashes for custom scripts. Although we didn't end up with inline JS-CSP coverage for this, thanks for your issue because we needed to firm up our recommendation on this subject for the community. Happy New Year! 🎉 |
Thank you all!
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Luke Latham ***@***.***>
Sent: Tuesday, January 7, 2025 8:46:52 AM
To: dotnet/AspNetCore.Docs ***@***.***>
Cc: jbaumflek ***@***.***>; Mention ***@***.***>
Subject: Re: [dotnet/AspNetCore.Docs] Add remarks on avoiding inline JS (PR #34431)
@jbaumflek<https://github.com/jbaumflek> ... Ok, so we have our answer from Javier ... don't recommend inline JS at all, and we'll just leave the CSP article as it currently is with its remarks about hashes for custom scripts. Although we didn't end up with inline JS-CSP coverage for this, thanks for your issue because we needed to firm up our recommendation on this subject for the community. Happy New Year! 🎉
—
Reply to this email directly, view it on GitHub<#34431 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFTJ67YJRXQVIQIVXNZE2BD2JPLEZAVCNFSM6AAAAABUP6ONV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZVGMZTKMBQG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Fixes #34425
Thanks @jbaumflek! 🚀 ... I'll start with this, and I'll ask Steve to review it next week. Let's give him a second to get back into the swing of things now that we're all coming back from the holidays.
BTW ... Ignore my code-fencing activities on the DIFF. I noticed in passing that I didn't have the policy directive cross-link API code-fenced, and I decided to do that here to avoid having to create a new PR. Scroll down to the new Use of inline JavaScript with a CSP section.
I'll keep an 👂 open if you create a product unit issue to discuss this subject with engineering.
Internal previews