Replace the escape-hatch origins for this environment
PUT
/api/server/v1/allowed-origins
const url = 'https://api.torii.so/api/server/v1/allowed-origins';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"origins":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.torii.so/api/server/v1/allowed-origins \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "origins": [ "example" ] }'Full origins incl. non-http schemes (e.g. capacitor://localhost). Replaces the list.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
origins
required
Array<string>
Example generated
{ "origins": [ "example" ]}Responses
Section titled “ Responses ”OK
Media type application/json
object
origins
required
Array<string>
Example generated
{ "origins": [ "example" ]}