{
  "slug": "contentful-edge-proxy-for-webflow",
  "title": "Contentful headless cms edge proxy for webflow",
  "metaTitle": "Contentful headless cms edge proxy - RealComposer",
  "metaDescription": "Contentful headless cms edge proxy for webflow. Single edge endpoint for Webflow fetch with CORS and au. Webflow CORS fix for Contentful via.",
  "headline": "Dynamic Webflow pages from Contentful entries",
  "category": "ecosystem",
  "categoryLabel": "Platforms & Frameworks",
  "urgency": 8,
  "clientPlatform": "Webflow",
  "upstreamServices": [
    "Contentful"
  ],
  "searchIntentQuery": "contentful headless cms edge proxy for webflow",
  "directAnswerSummary": "Single edge endpoint for Webflow fetch with CORS and auth. For \"contentful headless cms edge proxy for webflow\", store CONTENTFUL_ACCESS_TOKEN in Secret Vault, call https://cdn.contentful.com/spaces/{{query.spaceId}}/entries from a Worker, and let Webflow hit only https://realcomposer.com/v1/workspace/contentful-edge-proxy-for-webflow with an rc_live_ client token.",
  "problem": {
    "title": "Webflow cannot attach secret headers to Contentful",
    "explanation": "Webflow runs in the browser or a sandbox without a secret store. Contentful rejects unsigned browser origins or requires server-only headers.",
    "risks": [
      "Proxy hacks that break when vendors tighten CSP",
      "Zapier-only workarounds adding cost and latency",
      "Guest users seeing failed network requests in demos"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Add vault secrets for this pipeline",
      "description": "Add CONTENTFUL_ACCESS_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Configure upstream steps and output mapping",
      "description": "Point step contentful at https://cdn.contentful.com/spaces/{{query.spaceId}}/entries with GET. Add output mapping fields that mirror the JSON contract your screen already expects. Leave cache TTL at 0 when each response is user-specific (include userId or record id in query params before enabling cache)."
    },
    {
      "stepNumber": 3,
      "title": "Call from Webflow custom code",
      "description": "Allowed origins on the token should list every Webflow host that calls this URL.",
      "codeSnippet": "fetch('https://realcomposer.com/v1/workspace/contentful-edge-proxy-for-webflow', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n}).then(r => r.json());"
    }
  ],
  "pipelineConfig": {
    "name": "Contentful headless cms edge proxy for webflow",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "contentful",
        "upstreamUrlTemplate": "https://cdn.contentful.com/spaces/{{query.spaceId}}/entries",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.CONTENTFUL_ACCESS_TOKEN}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "entryId",
          "sourcePath": "items.0.sys.id",
          "type": "string",
          "sourceStep": "contentful"
        },
        {
          "targetPath": "title",
          "sourcePath": "items.0.fields.title",
          "type": "string",
          "sourceStep": "contentful"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_contentf",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "contentful-edge-proxy-for-webflow"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "entryId": "sample",
    "title": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/contentful-edge-proxy-for-webflow\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Can Webflow call Contentful without holding the production key?",
      "answer": "Store CONTENTFUL_ACCESS_TOKEN for contentful-edge-proxy-for-webflow. Webflow never sees decrypted values."
    },
    {
      "question": "Does POST traffic get cached?",
      "answer": "contentful-edge-proxy-for-webflow forwards client JSON to POST upstreams unchanged; secrets interpolate only in URLs and header templates."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Upstream steps in contentful-edge-proxy-for-webflow honor timeoutMs and optional fallback JSON without leaking secrets."
    }
  ],
  "relatedRecipeSlugs": [
    "connect-custom-rest-api-to-framer",
    "call-rest-api-webflow-without-zapier"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/contentful-edge-proxy-for-webflow",
    "markdown": "https://realcomposer.com/recipes/contentful-edge-proxy-for-webflow.md",
    "json": "https://realcomposer.com/recipes/contentful-edge-proxy-for-webflow.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=contentful-edge-proxy-for-webflow&via=agent"
  }
}