Skip to content

fix(cors): allow Capacitor localhost origin#4

Merged
2221186349 merged 1 commit intoqingchencloud:mainfrom
youyli03:fix/cors-capacitor-localhost
Mar 1, 2026
Merged

fix(cors): allow Capacitor localhost origin#4
2221186349 merged 1 commit intoqingchencloud:mainfrom
youyli03:fix/cors-capacitor-localhost

Conversation

@youyli03
Copy link
Contributor

@youyli03 youyli03 commented Mar 1, 2026

问题:APK 页面 Origin 为 https://localhost,访问 http://192.168.10.3:3210 时 /api/connect 预检未放行,导致输入 token 后无法进入。

测试:Origin=https://localhost 的 OPTIONS /api/connect 现返回 Access-Control-Allow-Origin。

问题:APK 页面 Origin 为 https://localhost,访问 http://192.168.10.3:3210 时 /api/connect 预检未放行,导致输入 token 后无法进入。

测试:Origin=https://localhost 的 OPTIONS /api/connect 现返回 Access-Control-Allow-Origin。
@2221186349 2221186349 merged commit 484d743 into qingchencloud:main Mar 1, 2026
@2221186349
Copy link
Collaborator

感谢提交 🎉 Capacitor APK 的 CORS 问题确实是个遗漏,已合并。

欢迎继续参与贡献,有问题随时提 Issue 或进群交流!

@youyli03 youyli03 deleted the fix/cors-capacitor-localhost branch March 3, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants