[global] server.socket_host = "0.0.0.0" server.socket_port = 8081 [/] tools.sessions.on = True tools.staticdir.root = os.path.abspath(os.getcwd()) tools.cors.on = True # ✅ 新增:启用跨域中间件 [/static] tools.staticdir.on = True tools.staticdir.dir = "./public" [/data] tools.staticdir.on = True tools.staticdir.dir = "./data" [/temp] tools.staticdir.on = True tools.staticdir.dir = "./temp" [/views] tools.staticdir.on = True, tools.staticdir.dir = "./views" auth.require = [] [/assets] tools.staticdir.on = True, tools.staticdir.dir = "./assets"