ReferenceAgents
Normalise allowed origins for a widget key without saving (signed-in users)
POST
/v1/widget-origins/checkEach origin as it would be saved, or the problem with it. An origin without a scheme gets http:// for the local machine (localhost, 127.0.0.1, [::1], *.localhost) and https:// otherwise; default ports are dropped and hosts lower-cased.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/widget-origins/check" \ -H "Content-Type: application/json" \ -d '{ "origins": [ "localhost:8095", "www.example.edu", "https://example.edu/page" ] }'{ "data": [ { "input": "string", "origin": "string", "problem": "string" } ]}