WarUI

Safe image and avatar columns

GRID-A29-F09P2beyond-baselinePlanned

Image columns validate src against an image URL policy, optionally block remote loading until the user consents, and apply referrerpolicy and lazy loading. This prevents tracking pixels and dangerous schemes.

Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

An avatar column with CDN, unknown-host, data:image/svg+xml, and javascript: sources.

Expected behavior

Only allowed sources load. Others show a placeholder. SVG data URIs are rejected even when data URIs are allowed. The network log confirms that no request was made to blocked hosts.

Planned API surface

columns[].type='image'imagePolicy.allowedHostsimagePolicy.allowDataUrisimagePolicy.blockRemoteUntilConsentimagePolicy.referrerPolicycolumns[].altField

Acceptance criteria

  • No network request is made for blocked sources. (pending)
  • data:image/svg+xml is rejected by default. (pending)
  • Every image has alt text from altField or an empty alt for decorative images. (pending)
  • referrerPolicy defaults to no-referrer. (pending)