Developer & Agent API Portal
Developer Security & API Troubleshooting
Keep credentials server-side, obey CORS allowlists, and troubleshoot failed HTTP/JSON responses.
Developer Best Practices
- Never Embed Private Tokens Client-Side: Any OAuth token or webhook secret must stay in server-side environment variables, never inside browser JavaScript or GitHub repositories.
- Validate Timeouts & Non-JSON Responses: Always wrap external HTTP calls in 3–5 second timeouts and check
response.okplusContent-Type: application/jsoncleanly. - Respect CORS Allowlists: State-changing or origin-checked routes permit official Fusion Hub origins (
panel.fusionhub.in,fusionhub.in,bot.fusionhub.in,docs.fusionhub.in); public read APIs (/api/v1/*,/api/stats,/api/mcp) sendAccess-Control-Allow-Origin: *.