curl --request PUT \
--url https://storekit.samarthh.me/v1/user/store/{storeId}/cors \
--header 'Content-Type: application/json' \
--data '
{
"origins": [
"https://example.com"
],
"methods": [
"GET",
"POST"
],
"headers": [
"Content-Type"
],
"credentials": true
}
'Update CORS configuration for the store. Requires store owner authentication.
curl --request PUT \
--url https://storekit.samarthh.me/v1/user/store/{storeId}/cors \
--header 'Content-Type: application/json' \
--data '
{
"origins": [
"https://example.com"
],
"methods": [
"GET",
"POST"
],
"headers": [
"Content-Type"
],
"credentials": true
}
'