Calling from a browser
By default a key is server only: a request that carries a browser Origin header is refused with 403 origin_not_allowed.
To call from a web page, add the page's origin to the key (for example https://status.acme.com). Preflight requests are answered for any origin; the actual request is checked against the key's origins, and allowed ones get Access-Control-Allow-Origin.
The browser's EventSource can't send an Authorization header: read streams with fetch instead.
Anyone who opens the page can read a key embedded in it. Use browser keys only with
readaccess, a low rate limit, and an environment where that is acceptable.