-
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
Nonce/Hash in Blazor (CSP) #22121
Comments
Hello @jvallejoa ... There will be some control over some tags in the page's I think the original feature, which was going to be for the 5.0 release but was pushed back because they weren't happy with it, relied on JS interop to actually interact with the The PU issue is at 👉 dotnet/aspnetcore#25705 ... and there's some discussion there. I see that Damian has a bit of code up as a suggestion for how it might work. I think he uses JS interop and a custom component (or a few) to do it. You can also see if you can track down Mackinnon's original code for Link, Title, and Meta to see how he did it ... it's probably on an old branch over there somewhere. This is ultimately a feature request for the Blazor framework. It's not really a docs scenario at the moment. Although, I admit that it might be nice somewhere to document that control of I'm going to close this issue, but pick up with this on that PU issue that I cross-linked ☝️. You can ask them about your ideas there for CSP or a generic, direct way to interact with any If you do open a new issue on the subject with them, please add a |
Great doc, but nowadays it's a must to implement CSP by nonce and hash approaches in modern web apps. Could you give us some real examples of the use nonce and hash in blazor wasm and server. So far I can't find a simple way to add dynamic content in tag header at index.html.
Thanks
Juan Vallejo
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: