sandbox iframe プローブ
下に sandbox="allow-scripts" の iframe を生成し、その中で origin /
localStorage 可否を実測します(postMessage で結果を回収)。
戦略メモ(理論調査の結論)
- allow-same-origin なし → origin=null で Storage 不可・CORS 拒否されやすい。
- JS は allow-scripts で走るため si.js のパースは可能だが、永続化・API が壊れる。
- 埋め込み iframe は対象外と割り切るか、Storage 非依存の縮退モードで対応。