# module-external-widget

## External scripts and iframes as reviewable data, with Core-owned CSP, languages, optional section copy and privacy review.

## Sandboxed iframe without external dependencies

This static same-origin fixture demonstrates Core's wrapper, reserved height, languages and strict iframe sandbox.

## One contract for both scripts and iframes

`module-external-widget` selects either `script` or `iframe`. Script mode renders the provider's exact mount ID first and then a deferred HTTPS script. Iframe mode reserves height, lazy-loads the document and requires an explicit sandbox.

`section_title` and `section_text` are optional and use the same section styling as legacy native modules. Without them, the widget renders without a visible module heading or introduction. The iframe gets its accessible `title` from the language's `aria_label`; no separate widget heading is needed. `fallback_text` and `fallback_link` are also optional and render only when supplied.

The functional demo above uses a static same-origin fixture. Script mode is verified against Core's controlled test provider and will only be shown publicly when a real reviewed HTTPS endpoint exists; a pretend provider or unknown third party would create a misleading security picture.

## Inspect Network and Application

Open DevTools → Network, enable Preserve log and Disable cache, and test reload, interaction, mobile and every language. Inspect Script/Doc/Fetch/XHR, domains, initiator chains, request and response headers, Cookie/Set-Cookie, payloads and redirects.

Then inspect Application/Storage: Cookies, Local Storage, Session Storage, IndexedDB, Cache Storage and Service Workers. Compare with the page without the widget and in a fresh private window. Network cannot prove that server-side tracking is absent.

## Policy, tracking and schema

Update the site's privacy and cookie policy if the provider's actual processing requires it. If consent is required before loading, block the integration until CCMS has a global consent gate.

Core adds no parallel click tracking inside provider content and creates no Article schema from an empty dynamic container. The host page's metadata, canonical, hreflang and final JSON-LD remain static CCMS contracts.
