Remove a bit of inline CSS. Add CSP nonce where it might be required and is available. by craiga · Pull Request #7960 · encode/django-rest-framework (original) (raw)
Remove a few instances of inline CSS which could trigger Content Security Policies (CSPs) and replace with classes where required.
Also adds CSP nonce to a style block which may be provided by django-csp.
Part of #6069.
I've left JavaScript alone as it's covered by #5740 and #7016 (which I think are duplicates of each other?).