-
-
Notifications
You must be signed in to change notification settings - Fork 286
Open
Labels
bugBUGBUG
Description
Describe the bug
开发模式Koishi使用了Vite,而新版Vite(6.0.9)引入了server.allowedHosts
配置,默认情况下,仅允许localhost
响应请求,因此以别的域名访问Koishi时只有白屏。打开控制台发现尝试加载文件但得到了403错误,访问错误对应的URL,提示Blocked request.
等内容。
Steps to reproduce
用Yarn部署Koishi(yarn create koishi
)
修改koishi.yml
在server
部分加上host: 0.0.0.0
开发模式启动Koishi(yarn dev
)
日志正常无报错,打开浏览器用域名访问Koishi,出现白屏。
Expected behavior
应能正常访问Koishi。
Screenshots
Versions
System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (4) arm64 Neoverse-N1
Binaries:
Node: 20.17.0
Yarn: 4.5.3
Koishi:
Core: 4.18.7
Console: 5.30.7
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugBUGBUG