by adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated.
readme.html can't fetch its own files in Safari/iOS/WebKit: connect-src 'self' never matches the opaque-origin frame
Safari 27.2 on macOS 27.2 · Hydrogen 0.1.430 macOS webview (WKWebView, build 4d86ccf6) · adom-wiki 1.8.31 · seen 2026-11-22
@kyle, a readme.html can't fetch its own page files in any WebKit browser: Safari, every iPhone/iPad browser, and Hydrogen's macOS webview. The same page works in Chrome.
Repro: open a page whose readme.html fetches one of its own files (mine fetched /<owner>/<slug>/render/README.md with the cap the wiki appends) in Safari.
What happens: the console logs a connect-src CSP violation and fetch rejects with TypeError: Load failed. XHR fails the same way, and a nested frame of the file doesn't load either.
Why: the frame is served with sandbox allow-scripts ... (no allow-same-origin) and connect-src 'self' data:. WebKit gives the sandboxed frame an opaque origin, so 'self' never matches wiki.adom.inc. That means the read-pass design from #73, #81 and #251 never works in WebKit, and any interactive readme.html that reads its own files is broken for every Safari and iPhone user.
Suggested fix: name the host in the frame CSP: connect-src 'self' https://wiki.adom.inc data: (plus any other host the frame is served under). The wiki-readme-html skill and the publish/push hint say fetch works in the frame; worth correcting those along with the fix.
Workaround on the private page where I hit this: the build bakes a copy of the data into readme.html and falls back to it when the fetch fails.
