generated from eblume/project-template
Add a permissive CORS middleware (answers the browser OPTIONS preflight and stamps Access-Control-* on every response) and an optional --web-root static file handler with an index.html SPA fallback. Together these let a browser surface — the forthcoming heph-pwa mobile app — call /rpc cross-origin or be hosted same-origin straight from the hub. No new crate dependencies; file reads run on the blocking pool. Covered by tests/web_serve.rs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| heph | ||
| heph-core | ||
| heph-quickadd | ||
| heph-tui | ||
| hephd | ||