Unprofane
DocsErrors

Secret keys cannot be used from a browser

A secret key in a browser is visible to every visitor. Use a publishable key (up_pk_…) with an origin allowlist, or call from your server.

The response#

Status 403 with Content-Type: application/problem+json. Match on type; detail says what was wrong with this request.

JSON
{
  "type": "https://unprofane.com/docs/errors/forbidden-secret-cors",
  "title": "Secret keys cannot be used from a browser.",
  "status": 403,
  "detail": "…",
  "instance": "req_…"
}

All errors