Setup SSR for Material UI when providing CSP nonce
The frontend is kind of hacky on the mui nonce setup, but that's what I got from MUI guys who didn't post a great docs on CSP which doesn't require SSR for non-CRA projects: https://mui.com/material-ui/guides/content-security-policy/.
It seems like the only recommended way to insert dynamic nonces into the html, and also we are no longer using CRA, but using webpack, so we are kind of in an odd spot, but it's still working.
link on server side rendering (SSR): https://mui.com/material-ui/guides/server-rendering/.
Edited by abhayashrestha