Build on Fiddle

Network policy

Control what your workspace's prototypes can reach, so a page can't send what people type to another site.

Every prototype is served with a Content Security Policy that allows only:

  • its own files, and Fiddle;
  • common public CDNs: cdnjs, jsDelivr, unpkg, esm.sh, JSPM, Skypack, the Tailwind CDN, jQuery's, and Google Fonts;
  • the hosts your workspace allows.

So by default a page can't fetch another API, post a form to another site, or load an image from another host. A page can add a stricter policy of its own, but never loosen this one.

Allow a host

Owners and admins add hosts in Settings → Network: api.example.com, or *.example.com for its subdomains. HTTPS only. It applies to every prototype in the workspace at once.

What it doesn't cover

A link someone clicks, or a window the page opens, leaves the page like any link. Keep what people enter in page data, where its rules apply.