Menu
Get Cors Preferences
Return all CORS preferences for the given site.
GET
/organizations/{organizationId}/corsUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Get Cors Preferences action (under CORS (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{getCorsPreferences.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getCorsPreferences.response.data.<field>}}.
{
"corsClientPreferences": [
{
"clientId": "12345678-90ab-cdef-fedc-ba0987654321",
"origins": [
[
"http://foo.com",
"https://foo.bar.com",
"myapp://example.com"
]
]
}
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?