fix(web): stop pinning Pico WebSocket origins during setup
- remove request-origin seeding from `EnsurePicoChannel` - keep `allow_origins` empty by default for auto-configured Pico channels - relax launcher Pico WebSocket proxy origin validation - update Pico backend tests for the new setup and proxy behavior
This commit is contained in:
1 parent
d002e1517b
commit
f8190f04b7
4 files changed
+85
-152
No files matched your search
+1
-1
@@ -544,7 +544,7 @@ func main() {
|
||||
// API Routes (e.g. /api/status)
|
||||
apiHandler = api.NewHandler(absPath)
|
||||
apiHandler.SetDebug(debug)
|
||||
if _, err = apiHandler.EnsurePicoChannel(""); err != nil {
|
||||
if _, err = apiHandler.EnsurePicoChannel(); err != nil {
|
||||
logger.ErrorC("web", fmt.Sprintf("Warning: failed to ensure pico channel on startup: %v", err))
|
||||
}
|
||||
apiHandler.SetServerOptions(portNum, effectivePublic, explicitPublic, launcherCfg.AllowedCIDRs)
|
||||
|
||||
Reference in new issue
Block a user