Cloudinary upload api proxy for framer website
Framer sites with server-side upload signing
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.
Why Framer leaks Cloudinary credentials
Attackers routinely extract Cloudinary secrets from Framer builds. Direct browser calls also expose internal error payloads with hostnames.
- Production Cloudinary keys copied from Framer bundles
- Compliance violations after credential leaks
- Attackers replaying vault-grade scopes from a laptop
How RealComposer Solves This at the Edge
Add vault secrets for this pipeline
Add CLOUDINARY_BASIC_AUTH to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream.
Set headers, mapping, and cache TTL
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.
Fetch inside Framer overrides
Call https://realcomposer.com/v1/workspace/cloudinary-upload-proxy-framer with a restricted rc_live_ client token. Framer never sends upstream secrets.
fetch('https://realcomposer.com/v1/workspace/cloudinary-upload-proxy-framer', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
{
"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"
}
}
}
{
"publicId": "sample",
"format": "sample"
}
Recipe Specs
- HTTP method
- POST
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 2
- Payload
- 249 B to 39 B (-84%)
curl -X POST "https://realcomposer.com/v1/workspace/cloudinary-upload-proxy-framer" \
-H "Authorization: Bearer rc_live_client_token" \
-H "Content-Type: application/json" \
-d '{"model":"example"}'Developer Questions & Troubleshooting
Can Framer call Cloudinary without holding the production key?
Point Framer at /recipes/cloudinary-upload-proxy-framer edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins.
Does POST traffic get cached?
cloudinary-upload-proxy-framer POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard.
Can I restrict which domains call this pipeline?
Rotate vault secrets for cloudinary-upload-proxy-framer anytime; clients keep the same rc_live_ token.
Sources & Definitions Used in This Answer
Deploy this Framer + Cloudinary Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.