def METHOD_NAME(self, request, response):
    script_hashes: List[str] = getattr(request, "_csp_script_hashes", [])
    csp_updates: List[CspUpdateDict] = getattr(request, "_csp_updates", [])
    response_csp_update: CspUpdateDict = getattr(response, "_csp_update", {})
    csp_updates.append(response_csp_update)
    if script_hashes:
        csp_updates.append({"script-src": ["'unsafe-inline'"] + script_hashes})
    setattr(response, "_csp_update", self._merge_csp_updates(csp_updates))
    return super().METHOD_NAME(request, response)