Menu
Create CORS Entry
Create a CORS entry
POST
/projects/{projectId}/corsUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Create CORS Entry action (under Projects).
- Fill in the fields below, then reference the result from later steps as
{{createCorsEntry.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"origin": "https://www.example.com",
"allowCredentials": false
}
Response
Returns 201 with an object. Read it in later steps with {{createCorsEntry.response.data.<field>}}.
{
"id": 0,
"origin": "string",
"allowCredentials": false,
"createdAt": "2025-01-01T00:00:00Z"
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?