💻 Code Runner
Run small code snippets in your browser sandbox — quick experiments without installing anything.
預覽
💻 控制台
0
控制台輸出將顯示在這裡
new Function、Web Worker 或 iframe sandbox,隔離程度依次增強。allow-same-origin,不能讀取父頁或本地檔案;sandbox 本身不阻斷網路,因此本工具在預覽文件內注入 CSP default-src 'none',預設禁止外部 fetch/圖片/字型等出站請求,也沒有提供“允許網路”開關。如程式碼需要外部資源,請自行在本地環境驗證。Run small code snippets in your browser sandbox — quick experiments without installing anything.
線上程式碼執行器是一款純前端程式碼編輯與預覽工具,支援 HTML、CSS、JavaScript 三種語言的即時編輯和執行。
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Execution isolation | untrusted code must run sandboxed without network or file access | OWASP guidance |
| Resource limits | no CPU time or memory limits; infinite loops may make the page unresponsive | OWASP guidance |
| Same-origin policy | in-browser execution is bounded by SOP and CSP | W3C CSP Level 3 |