def get_talisman_config(config: dict) -> dict:
    """Get a dict of keyword arguments to configure flask-talisman."""
    # Talisman doesn't read settings from the Flask app config.
    names = {
        "CSP_POLICY": "content_security_policy",
        "CSP_POLICY_NONCE_IN": "content_security_policy_nonce_in",
        "CSP_POLICY_REPORT_ONLY": "content_security_policy_report_only",
        "CSP_POLICY_REPORT_URI": "content_security_policy_report_uri",
    }

    result = {kwarg: config[setting] for setting, kwarg in names.items()}

    return result