This PR makes django-leaflet (hopefully) compatible with CSP. I initially intended to do this by removing all inline styles and scripts, but quickly found that approach to not be easily workable. I just couldn't see my way to doing it in the context of having multiple maps on one page.
Instead I started adding an optional 'csp_nonce' to tags that cause inline styles to be rendered.
This work builds on top of that by @rodolvbg started in #337.
This PR makes django-leaflet (hopefully) compatible with CSP. I initially intended to do this by removing all inline styles and scripts, but quickly found that approach to not be easily workable. I just couldn't see my way to doing it in the context of having multiple maps on one page.
Instead I started adding an optional 'csp_nonce' to tags that cause inline styles to be rendered.
This work builds on top of that by @rodolvbg started in #337.