A publishable key is limited to the origins on its project. Add the origin in the dashboard, or use a secret key from your server. Publishable keys may only call /v1/check.
The response#
Status 403 with Content-Type: application/problem+json. Match on type; detail says what was wrong with this request.
{
"type": "https://unprofane.com/docs/errors/forbidden-origin",
"title": "This origin is not allowed for this publishable key.",
"status": 403,
"detail": "…",
"instance": "req_…"
}