Added nonce to prerender script output to support CSP #761

Closed
opened 2025-08-09 17:17:34 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @nilsgs on 5/15/2017

Currently we need to use script-src 'unsafe-inline' in the Content Security Policy header to get access to the global js object added to the page by the prerenderer.

I've added an optional asp-prerender-nonce attribute, to overcome this limitation.

*Originally created by @nilsgs on 5/15/2017* Currently we need to use `script-src 'unsafe-inline'` in the Content Security Policy header to get access to the global js object added to the page by the prerenderer. I've added an optional `asp-prerender-nonce` attribute, to overcome this limitation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#761
No description provided.