---
title: Transformations Allowed Origins
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Zones](https://developers.cloudflare.com/api/go/resources/zones)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Transformations Allowed Origins

##### [Get Image Transformations Allowed Origins setting](https://developers.cloudflare.com/api/go/resources/zones/subresources/transformations_allowed_origins/methods/get)

client.Zones.TransformationsAllowedOrigins.Get(ctx, query) (\*[TransformationsAllowedOrigins](<https://developers.cloudflare.com/api/go/resources/zones#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/settings/transformations\_allowed\_origins

##### [Change Image Transformations Allowed Origins setting](https://developers.cloudflare.com/api/go/resources/zones/subresources/transformations_allowed_origins/methods/edit)

client.Zones.TransformationsAllowedOrigins.Edit(ctx, params) (\*[TransformationsAllowedOrigins](<https://developers.cloudflare.com/api/go/resources/zones#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)>), error)

PATCH/zones/{zone\_id}/settings/transformations\_allowed\_origins

##### ModelsExpand Collapse

<details>

<summary>

type TransformationsAllowedOrigins struct{…}

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

</summary>

ID TransformationsAllowedOriginsIDOptional

ID of the zone setting.

<a href="#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Editable TransformationsAllowedOriginsEditableOptional

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

</summary>

One of the following:

const TransformationsAllowedOriginsEditableTrue TransformationsAllowedOriginsEditable = true

<a href="#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)%20%3E%20(property)%20editable%20%3E%20(member)%200">Link to this property</a>

const TransformationsAllowedOriginsEditableFalse TransformationsAllowedOriginsEditable = false

<a href="#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)%20%3E%20(property)%20editable%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)%20%3E%20(property)%20editable">Link to this property</a>

ModifiedOn TimeOptional

last time this setting was modified.

formatdate-time

<a href="#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

<details>

<summary>

Value TransformationsAllowedOriginsValueOptional

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

</summary>

One of the following:

const TransformationsAllowedOriginsValueOn TransformationsAllowedOriginsValue = "on"

<a href="#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%200">Link to this property</a>

const TransformationsAllowedOriginsValueOff TransformationsAllowedOriginsValue = "off"

<a href="#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zones.transformations_allowed_origins%20%3E%20(model)%20transformations_allowed_origins%20%3E%20(schema)>)