RealComposer
WebflowContentfulPlatforms & Frameworks

Contentful headless cms edge proxy for webflow

Dynamic Webflow pages from Contentful entries

Direct Answer & Architecture Summary

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.

Security LevelAES-256-GCM Vault
Edge LatencySub-10ms Response
InfrastructureZero Server Maintenance
The Problem Solved

Webflow cannot attach secret headers to Contentful

Webflow runs in the browser or a sandbox without a secret store. Contentful rejects unsigned browser origins or requires server-only headers.

Critical Security & Operational Risks:
  • Proxy hacks that break when vendors tighten CSP
  • Zapier-only workarounds adding cost and latency
  • Guest users seeing failed network requests in demos
Architecture & Step-by-Step Implementation

How RealComposer Solves This at the Edge

1

Add vault secrets for this pipeline

Add CONTENTFUL_ACCESS_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream.

2

Configure upstream steps and output mapping

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).

3

Call from Webflow custom code

Allowed origins on the token should list every Webflow host that calls this URL.

                    fetch('https://realcomposer.com/v1/workspace/contentful-edge-proxy-for-webflow', {
  headers: { Authorization: 'Bearer rc_live_your_token' }
}).then(r => r.json());
                  
Payload Slimming Comparison
85% Bandwidth Reduction
Raw Upstream Response252 B
              {
  "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"
    }
  }
}
            
RealComposer Slimmed Edge Payload37 B
              {
  "entryId": "sample",
  "title": "sample"
}
            

Recipe Specs

HTTP method
GET
Upstream calls
1
Edge cache TTL
No caching
Client auth
Restricted client token
Mapped output fields
2
Payload
252 B to 37 B (-85%)
Call from Terminal or Client
curl -X GET "https://realcomposer.com/v1/workspace/contentful-edge-proxy-for-webflow" \
  -H "Authorization: Bearer rc_live_client_token"
Frequently Asked Questions

Developer Questions & Troubleshooting

Can Webflow call Contentful without holding the production key?

Store CONTENTFUL_ACCESS_TOKEN for contentful-edge-proxy-for-webflow. Webflow never sees decrypted values.

Does POST traffic get cached?

contentful-edge-proxy-for-webflow forwards client JSON to POST upstreams unchanged; secrets interpolate only in URLs and header templates.

What happens if an upstream step times out?

Upstream steps in contentful-edge-proxy-for-webflow honor timeoutMs and optional fallback JSON without leaking secrets.

Sources & Definitions Used in This Answer

Instant Deployment

Deploy this Webflow + Contentful Recipe

Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.

CLONE THIS RECIPE
Related Architecture Recipes