Contentful headless cms edge proxy for webflow
Dynamic Webflow pages from Contentful entries
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.
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.
- Proxy hacks that break when vendors tighten CSP
- Zapier-only workarounds adding cost and latency
- Guest users seeing failed network requests in demos
How RealComposer Solves This at the Edge
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.
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).
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());
{
"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"
}
}
}
{
"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%)
curl -X GET "https://realcomposer.com/v1/workspace/contentful-edge-proxy-for-webflow" \ -H "Authorization: Bearer rc_live_client_token"
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
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.