Skip to content

老哥,在部署的时候出现问题了,无法访问服务 #16

@2googlegroupCE0

Description

@2googlegroupCE0

部署完成之后,访问报错:Blocked request. This host ("my host") is not allowed. To allow this host, add "my host " to server.allowedHosts in vite.config.js.

之前部署没啥问题,今天拉取了最新版的部署了一下,打开就报错了,vite.config.ts文件中加入了my host,但是依旧提示这个,本地访问也是这样,再三看了下,端口是放行的,域名解析也没问题。我是小白,,网上查了很多资料,所以虚心请教下。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions