A decorator to set an entire policy for a specific view. Unlike @csp_patch
(#11) this would completely override the site-wide policy and only include the directives mentioned. It would also cause policy-uri
to be removed and the complete policy to be sent.