Skip to main content
PUT
/
v1
/
user
/
store
/
{storeId}
/
cors
Update CORS Config
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
}
'

Headers

Content-Type
string

Path Parameters

storeId
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response