-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
前端启动报错405 #19
Comments
请使用 nginx |
报错405就是用的nginx,主要配置如下:
} |
hncboy/ai-beehive#71 请参考这个 nginx 配置,nginx 配的是后端接口。
|
好的,我试下,,有qq群或者微信群不? |
这是更改后的nginx: events { http {
} 但是现在报错502了 |
不应该吧,是不是后端启动有问题 |
前端更改.env文件,指定了VITE_APP_API_BASE_URL=http://后端ip:3002,然后打包了dist,放到了服务器nginx,且前端端口为1002,然后访问后端报错405 Not Allowed
POST http://后端ip:1002/api/user/login/email 405 (Not Allowed)
本地启动前端,连接服务器后端,就正常,不知道啥问题,求解决
The text was updated successfully, but these errors were encountered: