Observed behavior:
- Run ‘forge tunnel’. Everything works fine.
- Step away from PC for half an hour.
- Refresh page and forge app fails to load. Terminal logs for forge tunnel show:
Received proxy request. Serving file index.html for resource main from specified address http://localhost:3000
CSP violation detected for ‘connect-src’ while serving content at http://localhost:8001/ - Stop forge tunnel and start again. Works fine.
My manifest has:
resources:
key: main
path: static/spa/build
tunnel:
port: 3000
external:
fetch:
client:
- “*.localhost:3000”