Firebase rest api proxy for webflow site
Firestore-backed Webflow dynamic content
Firestore REST reads via edge with service token vault injection. For "firebase rest api proxy for webflow site", store FIREBASE_ACCESS_TOKEN in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let Webflow hit only https://realcomposer.com/v1/workspace/firebase-rest-proxy-webflow with an rc_live_ client token.
Firebase keys in Webflow network tabs
Webflow ships code or scripts to end-user devices. Any Firebase bearer token in those bundles can be copied from DevTools, proxies, or repackaged apps.
- Shared Webflow projects revealing Firebase tokens
- Sudden Firebase quota burn from scripted abuse
- Inability to rotate keys without redeploying clients
How RealComposer Solves This at the Edge
Add vault secrets for this pipeline
Create FIREBASE_ACCESS_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.
Target the real upstream URL
Point step firebase at https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} 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
Call https://realcomposer.com/v1/workspace/firebase-rest-proxy-webflow with a restricted rc_live_ client token. Webflow never sends upstream secrets.
fetch('https://realcomposer.com/v1/workspace/firebase-rest-proxy-webflow', {
headers: { Authorization: 'Bearer rc_live_your_token' }
}).then(r => r.json());
{
"requestId": "req_firebase",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "firebase-rest-proxy-webflow"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"docName": "sample",
"fields": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 2
- Payload
- 246 B to 38 B (-85%)
curl -X GET "https://realcomposer.com/v1/workspace/firebase-rest-proxy-webflow" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Which Firebase credential belongs in the vault for this pipeline?
Store FIREBASE_ACCESS_TOKEN for firebase-rest-proxy-webflow. Webflow never sees decrypted values.
Does POST traffic get cached?
firebase-rest-proxy-webflow vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body.
Can I restrict which domains call this pipeline?
Upstream steps in firebase-rest-proxy-webflow honor timeoutMs and optional fallback JSON without leaking secrets.
Sources & Definitions Used in This Answer
Deploy this Webflow + Firebase Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.