Browser_Based_API_Playground
Test APIs in browser. No CORS, login, or setup.
Created on 14th June 2026
•
Browser_Based_API_Playground
Test APIs in browser. No CORS, login, or setup.
The problem Browser_Based_API_Playground solves
Testing APIs usually means installing heavy desktop apps like Postman or fighting CORS errors when you try to call APIs straight from the browser. For quick checks during fast-paced hackathons, that's overkill.
Browser-Based API Playground is a lightweight, login-free tool to send GET/POST/PUT/PATCH/DELETE requests, set custom headers, params and bodies, and view clean, color-coded JSON responses — all from the browser.
The key part: a secure backend proxy makes the actual requests server-side, so CORS never blocks you. It also reports response time and size, generates ready-to-paste cURL/fetch/axios code, and saves your history and collections locally — no account needed.
Challenges we ran into
-
CORS: Calling third-party APIs directly from the browser fails because of CORS. We solved this by building a backend request engine that proxies requests server-side, where CORS doesn't apply, and returns a normalized response (status, headers, time, size).
-
Security (SSRF): A naive proxy can be abused to hit internal services like the cloud metadata endpoint (169.254.169.254) and leak secrets. We added an SSRF guard that resolves the target host and blocks private/loopback/link-local IPs, plus rate limiting and a body-size cap.
-
Measuring response time & size accurately: We fetch responses as raw bytes on the server to measure exact size, and time the request with high-resolution timers before parsing.
-
Two-domain integration: Frontend (Vercel) and backend (Render) live on different domains, so we made the backend stateless with open CORS, keeping all history/collections in the browser's localStorage.
Technologies used
