add automatic localhost and local ip to allow origin

This commit is contained in:
Adrian Zuercher
2025-06-29 21:18:15 +02:00
parent 59c7705ca1
commit e75d7c8b03
3 changed files with 34 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ func main() {
//initialize new server
dbmHandler.Log.Debug("main", "initialize new server instance")
s := ws.NewServer(a.AllowOrigins)
s := ws.NewServer(a.AllowOrigins, 9000)
//set routes
dbmHandler.Log.Debug("main", "setting routes")