GET Return all CORS preferences for the given site.
GET /organizations/{organizationId}/cors
Operation ID: getCorsPreferences. Security: AmOAuth2 (sfcc.cors-preferences, sfcc.cors-preferences.rw).
Return all CORS preferences for the given site.
Parameters
organizationId(path, OrganizationId, required) An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character realm identifier and a 3-character instance type identifier.Example
f_ecom_zzxy_prdsiteId(query, SiteId, required) The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.Example: SiteId
RefArch
Responses
- 200
CORS preferences for the given site returned successfully.
Media type:
application/json. Schema:CorsPreferences.Example: getCorsResultWithMappingsExample
{ "corsClientPreferences": [ { "clientId": "12345678-90ab-cdef-fedc-ba0987654321", "origins": [ "http://foo.com", "https://foo.bar.com", "myapp://example.com" ] } ] }Example: getCorsResultWithoutMappingsExample
{}