# Set the allowed websites ```http PUT https://api.onehazel.com/onehazel-api/operators/me/surfaces/embed/origins ``` Replaces the list of websites allowed to load the operator's surfaces. Body: `{ "allowed_origins": ["https://casino.example"] }`. Each entry is an origin: https, a host name and an optional port, no path (plain http is accepted only for `localhost` and `127.0.0.1`). Entries are normalised and duplicates dropped; at most 20. An empty list refuses every website. Session sign-in only, owner or admin of the operator account. Answers 200 with `{ public_key, allowed_origins, rotated_at }`, or 400 `SURFACE_ORIGIN_INVALID` with `details.invalid` listing up to 20 rejected entries. Section: [Surfaces](./) Operation id: `putOperatorsMeSurfacesEmbedOrigins` ## Authentication Signed-in session token (`Authorization: Bearer `). ## Request body JSON object. ## Responses `200` `{ "success": true, "data": ... }` Errors return `{ "success": false, "error": { "code": "...", "message": "..." } }` with a 4xx or 5xx status. ## Example ```bash curl -X PUT "https://api.onehazel.com/onehazel-api/operators/me/surfaces/embed/origins" \ -H "Authorization: Bearer YOUR_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{}' ``` Machine-readable: [openapi.yaml](/openapi.yaml), [openapi.json](/openapi.json).