本地跑前端项目显示接口报错,但已经配好了反向代理,求解
Describe the bug
⨯ FetchError: [GET] "https://cathylee.xyz/api/v2/aggregate?theme=shiro":
Reproduction
dev
System Info
pnpm run dev
Used Package Manager
pnpm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a minimal reproducible of the bug.
这个是我的后端反向代理。而且还有一个神奇的现象,就是连上梯子之后,https://cathylee.xyz/api/v2都打不开,不知道是不是因为服务器是国内的腾讯云的问题(菜鸡托腮
前端有配https没
不太清除前端配https,具体是指什么情况(小白勿怪
后端域名是有配好ssl和强制https的
issue里的报错是我本地localhost:2323的页面,不太清楚和配置https是否有关系
要是有大佬解答就好了(•_•)
前端有配https没
https://cathylee.xyz/api/v2/aggregate?theme=shiro
要在本地运行的话,后端 docker-compose.yml ALLOWED_ORIGINS 里需要加上 localhost:*,127.0.0.1:*