Never call the Unleash API from browser code directly. Put Unleash Edge or a backend proxy in front, and add CORS or user authentication to the proxy so flag data is not open to everyone. For server-rendered pages, evaluate flags server-side instead.

Context: Official docs (Unleash): the Unleash API is not accessible directly from a browser because CORS is not enabled. Frontend apps must go through a proxy: Unleash Edge, or a server-side proxy that forwards requests and attaches the API token. Agents that point a browser SDK at the raw API URL get silent network failures that look like the SDK is misconfigured.