in csp/middleware.py [0:0]
def build_policy_ro(self, request: HttpRequest, response: HttpResponseBase) -> str:
warnings.warn("deprecated in favor of get_policy_parts", DeprecationWarning)
policy_parts_ro = self.get_policy_parts(request=request, response=response, report_only=True)
return build_policy(**asdict(policy_parts_ro), report_only=True)