Skip to content
Start here

Transformations Allowed Origins

Get Image Transformations Allowed Origins setting
zones.transformations_allowed_origins.get(TransformationsAllowedOriginGetParams**kwargs) -> TransformationsAllowedOrigins
GET/zones/{zone_id}/settings/transformations_allowed_origins
Change Image Transformations Allowed Origins setting
zones.transformations_allowed_origins.edit(TransformationsAllowedOriginEditParams**kwargs) -> TransformationsAllowedOrigins
PATCH/zones/{zone_id}/settings/transformations_allowed_origins
ModelsExpand Collapse
class TransformationsAllowedOrigins:

Controls which origins are allowed to request image and video transformations.

id: Optional[Literal["image_resizing_allowed_origins"]]

ID of the zone setting.

editable: Optional[Literal[true, false]]

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

One of the following:
true
false
modified_on: Optional[datetime]

last time this setting was modified.

formatdate-time
value: Optional[Literal["on", "off"]]

Comma-separated list of allowed origin domains for image and video transformations. Use ”*” to allow all origins (default).

One of the following:
"on"
"off"