{
  "slug": "cloudinary-upload-proxy-framer",
  "title": "Cloudinary upload api proxy for framer website",
  "metaTitle": "Cloudinary upload api proxy for - RealComposer",
  "metaDescription": "Cloudinary upload api proxy for framer website. Framer components hit RealComposer for signed upload pa. Keep Cloudinary keys in RealComposer Vault;.",
  "headline": "Framer sites with server-side upload signing",
  "category": "security",
  "categoryLabel": "Security & Secret Vault",
  "urgency": 8,
  "clientPlatform": "Framer",
  "upstreamServices": [
    "Cloudinary"
  ],
  "searchIntentQuery": "cloudinary upload api proxy for framer website",
  "directAnswerSummary": "Framer components hit RealComposer for signed upload parameters. For \"cloudinary upload api proxy for framer website\", store CLOUDINARY_BASIC_AUTH in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/image/upload from a Worker, and let Framer hit only https://realcomposer.com/v1/workspace/cloudinary-upload-proxy-framer with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.",
  "problem": {
    "title": "Why Framer leaks Cloudinary credentials",
    "explanation": "Attackers routinely extract Cloudinary secrets from Framer builds. Direct browser calls also expose internal error payloads with hostnames.",
    "risks": [
      "Production Cloudinary keys copied from Framer bundles",
      "Compliance violations after credential leaks",
      "Attackers replaying vault-grade scopes from a laptop"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Add vault secrets for this pipeline",
      "description": "Add CLOUDINARY_BASIC_AUTH to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Set headers, mapping, and cache TTL",
      "description": "Use POST against https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/image/upload. Allowed origins on the client token should match post pipelines set cache ttl to 0 because realcomposer only stores get responses at the edge. Use a restricted unsigned upload preset. The vault cannot sign upload bodies; preset rules enforce MIME and size limits."
    },
    {
      "stepNumber": 3,
      "title": "Fetch inside Framer overrides",
      "description": "Call https://realcomposer.com/v1/workspace/cloudinary-upload-proxy-framer with a restricted rc_live_ client token. Framer never sends upstream secrets.",
      "codeSnippet": "fetch('https://realcomposer.com/v1/workspace/cloudinary-upload-proxy-framer', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n});"
    }
  ],
  "pipelineConfig": {
    "name": "Cloudinary upload api proxy for framer website",
    "method": "POST",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "cloudinary",
        "upstreamUrlTemplate": "https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/image/upload",
        "httpMethod": "POST",
        "headersTemplate": {
          "Content-Type": "application/json"
        },
        "timeoutMs": 10000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "publicId",
          "sourcePath": "resources.0.public_id",
          "type": "string",
          "sourceStep": "cloudinary"
        },
        {
          "targetPath": "format",
          "sourcePath": "resources.0.format",
          "type": "string",
          "sourceStep": "cloudinary"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_cloudina",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "cloudinary-upload-proxy-framer"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "publicId": "sample",
    "format": "sample"
  },
  "curlSnippet": "curl -X POST \"https://realcomposer.com/v1/workspace/cloudinary-upload-proxy-framer\" \\\n  -H \"Authorization: Bearer rc_live_client_token\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\":\"example\"}'",
  "faqs": [
    {
      "question": "Can Framer call Cloudinary without holding the production key?",
      "answer": "Point Framer at /recipes/cloudinary-upload-proxy-framer edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins."
    },
    {
      "question": "Does POST traffic get cached?",
      "answer": "cloudinary-upload-proxy-framer POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard."
    },
    {
      "question": "Can I restrict which domains call this pipeline?",
      "answer": "Rotate vault secrets for cloudinary-upload-proxy-framer anytime; clients keep the same rc_live_ token."
    }
  ],
  "relatedRecipeSlugs": [
    "hide-api-key-framer",
    "call-private-api-from-webflow-securely"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/cloudinary-upload-proxy-framer",
    "markdown": "https://realcomposer.com/recipes/cloudinary-upload-proxy-framer.md",
    "json": "https://realcomposer.com/recipes/cloudinary-upload-proxy-framer.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=cloudinary-upload-proxy-framer&via=agent"
  }
}