Understanding Remote Embed Authorization

The Swiffle Grid admin lets you authorize a remote site’s URL, WordPress or not, to embed your articles and WooCommerce products in a read-only HTML block snippet. The Gutenberg and Elementor block builders let you create this snippet, which can then be embedded in the HTML of any remote page authorized in your Swiffle Grid admin’s allow-list.

The snippet is independent of the block that generated it: deleting or modifying that original block never affects the remote HTML, which keeps working exactly as it was set up. The data it displays (articles, products, etc.), however, is refreshed in real time.

For a step-by-step example with WordPress posts shown on a plain HTML page, see Display WordPress Posts on Another Website (Free, No Code).

What you’re actually authorizing

When you add a URL to your allow-list, you choose exactly which data sources that URL can query remotely, each with its own checkbox:

SourceWhat it exposes
ArticlesYour WordPress posts
WooCommerce productsYour store’s product catalog
XLSX filesAny spreadsheet source configured on a block
CSV filesComma- or semicolon-separated data sources
RSS feedsAny RSS source configured on a block
Custom connectorsYour own custom data connectors
No source checked means no access granted. Only once a source is explicitly authorized for a given URL can that URL actually pull data from it. This gives you precise, per-domain control over what’s genuinely shared, instead of an all-or-nothing choice: one URL might only ever see your articles, while another also has access to your products, without ever touching your CSV or XLSX files.
⚠️ Why this matters. The snippet itself is just plain HTML: nothing technically stops someone from editing it to request a different source than originally intended. It’s the checkboxes on your own site, not the snippet’s content, that determine what can actually be served.

Special case: a remote WordPress site

If the authorized remote site happens to be WordPress itself, its administrator can install the free version of Swiffle Grid and build a data block pointing at your site (by entering your URL in the „Site home URL” field). They can then generate, in turn, a snippet embeddable on yet another remote site, always within the limits of whatever sources you’ve authorized for their URL.

Why an editable „Site home URL” matters more than it looks

At first glance, this might not seem to add much over simply handing out a ready-made HTML snippet directly. In practice, it changes everything.

Say you run a job board and want to let partner sites showcase your listings. The straightforward approach (exporting one HTML snippet and distributing it to every partner) locks them all into the exact same card design, pagination, and settings. Nobody can adapt it to fit their own site.

Instead, you tell each partner: „Install the free Swiffle Grid plugin on a WordPress site, build a block, and set its Site home URL field to mine to pull my job listings.” Each partner then designs their own block (their own colors, layout, card style, pagination), fully adapted to their own site. Once they’re happy with it, they export the resulting HTML snippet and paste it wherever they actually want it live, including on a site that isn’t WordPress at all.

✅ The key advantage. Once that snippet is exported, the WordPress site used to design it is no longer needed. The partner can delete it entirely: the exported snippet keeps working on its own, still pulling live data from your site, still respecting whatever sources you authorized for that URL. The WordPress install, and the Site home URL field on it, were only ever a design tool, never a dependency.

Testing in an online code editor (CodePen)

When you paste the embed snippet into CodePen, the grid does not run on codepen.io itself: CodePen shows the result from a page on cdpn.io, and that address depends on the view. Add each view you want to use to URLs allowed to embed, with the data sources it may show:

  • Editor and Full Page view: https://cdpn.io/YOUR-USERNAME/fullpage/PEN-ID
  • Embedded Pen (the Pen shown inside another web page): https://cdpn.io/YOUR-USERNAME/fullembedgrid/PEN-ID
  • Debug view: https://cdpn.io/pen/debug/PEN-ID

For example, our WordPress posts demo is allowed as https://cdpn.io/swiffle-grid/fullpage/EaWLwXQ and https://cdpn.io/swiffle-grid/fullembedgrid/EaWLwXQ. You can see all our demos running this way on the Live Demos page.

In some cases, for example a new Pen that has not been saved yet, CodePen uses a shared address instead: https://cdpn.io/cpe/boomboom/index.html. Every CodePen user goes through that same address, so allowing it lets any Pen show your data. Only allow it for public data, and remove it once your test is done.

Google Sites, Wix and other hosts that use a frame

Google Sites shows the code you add with Insert > Embed > Embed code inside a frame of its own, on an address like this one:

https://1413282164-atari-embeds.googleusercontent.com/embeds/519e65e0e56fcef24f03f43ae5831795/inner-frame-minified.html

The number at the start changes each time the page loads, and the rest of the address can change when Google updates Google Sites. Since version 1.20, an allowed address can start with * in place of that number. Since version 1.21, only the domain name is compared for such an address, so this is enough:

https://*-atari-embeds.googleusercontent.com

  • The * is only accepted at the very start of the domain name, followed by - or ., and it stands for letters, digits and dashes only, never for a dot.
  • Another domain, or http instead of https, is refused.
  • An address written in full, with the embed id after /embeds/, keeps working.
⚠️ What „*” opens. An address with * allows every page of every site whose address matches it, not only yours. Google Sites gives no way to tell your site from another one: once allowed, any Google Sites page can show your grid, with the data sources you checked for that address. Check only sources you are happy to show publicly. Use * only for a host that changes its own address on each load, like Google Sites. Never use it for your own site, nor for a domain shared by several owners (for example *.github.io or *.co.uk): it would open your grids to all of them. The settings page shows a warning under each address that contains *.

Use a full page embed, not an embed box

In Google Sites, an embed box keeps the same proportions on every screen. A box that is wide and one screen high on a computer becomes a thin strip on a phone, and a box tall enough for a phone scrolls away on a computer: the cart button and the swipe mode can’t fit both. A full page embed has none of these limits: the grid fills the window under the site header, on computers and phones alike.

  1. In the Google Sites editor, open the Pages panel, click + and choose New full page embed.
  2. Paste the embed code of your grid and give the page a name, for example Shop.
  3. Add the address of that page to URLs allowed to embed, and use it as the return address.

A full page embed holds nothing but the code you paste. For a title above the shop, put a few lines of HTML before the <swiffle-grid> tag, in the same code:

<div style="background:linear-gradient(135deg,#1f2a44,#3b2a5a);color:#fff;text-align:center;padding:28px 16px;font-family:Montserrat,Arial,sans-serif;">
  <h1 style="margin:0 0 8px;font-size:clamp(22px,4vw,34px);line-height:1.2;">Your shop title</h1>
  <p style="margin:0 auto;max-width:640px;font-size:15px;line-height:1.5;opacity:.9;">One or two lines about your shop.</p>
</div>
<swiffle-grid ...></swiffle-grid>

Keep this banner short, so the cards stay in sight on a phone. See it live: a Google Sites shop run from a Google Sheet.

Return address (Swiffle Grid PRO, version 1.23 or later)

From inside that frame, the grid can’t see the address of your Google Sites page. With a shop, buyers would come back from the cart to the frame’s address, which shows an empty page. With Swiffle Grid PRO, in the Embed code panel of the block or Elementor widget, fill Return address (optional) with the address of your page, for example https://sites.google.com/view/your-site/home. The code then carries it:

<swiffle-grid data-back="https://sites.google.com/view/your-site/home" datak="..."></swiffle-grid>

You can also add data-back by hand to a code you already pasted. Add that page address to URLs allowed to embed too: a return address that is not allowed is ignored. Sales from that page are then listed under it in WooCommerce > Sales by site.

Since version 1.24 of Swiffle Grid PRO, the cart and the login are kept when the Google Sites page is reloaded, closed and opened again, or after a visit to the checkout.

Since version 1.27 of Swiffle Grid PRO, buyers can log in inside a frame of another site (Google Sites, CodePen, Wix…) in every browser, and they reach the checkout logged in, with their cart.

✅ No need to guess. Since version 1.7, when a page is not allowed yet, the grid shows Service denied followed by the exact address to add. Copy it into URLs allowed to embed, choose the data sources, save, and reload the page.