How to Hide API Keys in Framer Websites
Secure Edge Proxy for Framer React Components & Interactions
Framer generates pure React client components where hardcoded API keys are visible to anyone viewing browser source code. Route requests through RealComposer to inject secrets at the edge and enforce domain origin protection.
Framer Code Components Run Exclusively in the Browser
Framer code overrides and components compile into browser-executed JavaScript with zero server privacy.
- Leaked API keys in public JS bundles
- Quota theft by competitors
- CORS blocking from third-party APIs
How RealComposer Solves This at the Edge
Store Secret in RealComposer
Save private API token in AES-256 Vault.
Fetch from Framer Component
Call RealComposer endpoint using public token.
{
"id": "email_99a8",
"from": "hello@startup.com",
"to": [
"user@example.com"
]
}
{
"messageId": "email_99a8"
}
Recipe Specs
- HTTP method
- POST
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Public
- Mapped output fields
- 1
- Payload
- 72 B to 26 B (-64%)
curl -X POST "https://realcomposer.com/v1/acme/framer-email"
Developer Questions & Troubleshooting
Can I restrict calls to my Framer domain?
Yes, RealComposer client tokens allow strict origin whitelisting.
Sources & Definitions Used in This Answer
- Stack guideFramer safe & unsafe practices
- Stack guideOpenAI safe & unsafe practices
- Stack guideAirtable safe & unsafe practices
- Stack guideResend safe & unsafe practices
- Official docsFramer documentation
- Official docsOpenAI documentation
- Official docsAirtable documentation
- Official docsResend documentation
Deploy this Framer + OpenAI, Airtable, Resend Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.