Skip to main content
Version: v1

Locations

The API provides methods for flexible configuration of locations for a domain. Using these, you can create custom locations as well as configure headers and CORS for each of them. This allows you to optimally configure request handling for different parts of your website.

info

By default, the entire site uses the location "/" with basic settings.

location Object

ParameterTypeDescriptionExample
idintegerLocation ID1
namestringLocation name/images
typestringLocation typematching
domain_idintegerDomain ID
headersobject[]List of additional HTTP headers
headers.keystringHeader nameX-MEDIA-TYPE
headers.valuestringHeader value.pptx
cors_headersobject{}CORS headers object
cors_headers.access_control_allow_originobject[string]["example.com"]
cors_headers.access_control_expose_headersobject[string]["Content-Encoding"]
cors_headers.access_control_max_ageinteger600
cors_headers.access_control_allow_credentialsbooleantrue
cors_headers.access_control_allow_methodsobject[string]["OPTIONS"]
cors_headers.access_control_allow_headersobject[string][*]