[GH-ISSUE #613] [BUG] Telegram Mini App 与 Cloudflare Zero Trust 兼容问题 #231

Open
opened 2026-02-26 20:36:15 +03:00 by kerem · 3 comments
Owner

Originally created by @catfishlty on GitHub (Mar 28, 2025).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/613

复现步骤

  1. Web前端部署
    1.1 通过 page functions 转发后端请求
    1.2 temp-mail.example.com
    1.3 配置Zero Trust
  2. API后端部署
    2.1 temp-mail-api.example.com
    2.2 配置Zero Trust
  3. Mini App前端部署
    3.1 temp-mail-miniapp.example.com
    3.2 不配置Zero Trust
  4. 在Telegram中打开MiniApp出现Network Error

预期行为

顺利打开MiniApp,且功能正常

部署方式

  • cli 部署
  • 用户界面部署

浏览器环境

Chrome,Telegram Embed Explorer

Originally created by @catfishlty on GitHub (Mar 28, 2025). Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/613 ## 复现步骤 1. Web前端部署 1.1 通过 page functions 转发后端请求 1.2 temp-mail.example.com 1.3 配置Zero Trust 2. API后端部署 2.1 temp-mail-api.example.com 2.2 配置Zero Trust 3. Mini App前端部署 3.1 temp-mail-miniapp.example.com 3.2 不配置Zero Trust 4. **_在Telegram中打开MiniApp出现`Network Error`_** ## 预期行为 顺利打开MiniApp,且功能正常 ## 部署方式 - [x] cli 部署 - [ ] 用户界面部署 ## 浏览器环境 Chrome,Telegram Embed Explorer
Author
Owner

@dreamhunter2333 commented on GitHub (Mar 29, 2025):

感谢反馈,Mini App前端 可以也使用 Zero Trust 么

<!-- gh-comment-id:2763242198 --> @dreamhunter2333 commented on GitHub (Mar 29, 2025): 感谢反馈,Mini App前端 可以也使用 Zero Trust 么
Author
Owner

@catfishlty commented on GitHub (Mar 31, 2025):

感谢反馈,Mini App前端 可以也使用 Zero Trust 么

如果三个都使用Zero Trust,理论上应该能正常使用,但是用Telegram内置浏览器 打开的话会跳转Zero Trust认证页面,不确定内置浏览器是否会记录保存cookie信息,不然打开一次就会认证一次会很麻烦。

目前Mini App是没有用Zero Trust的,但是访问 API是会触发Zero Trust规则,所以请求会失败。

<!-- gh-comment-id:2764941908 --> @catfishlty commented on GitHub (Mar 31, 2025): > 感谢反馈,Mini App前端 可以也使用 Zero Trust 么 如果三个都使用Zero Trust,理论上应该能正常使用,但是用`Telegram`内置浏览器 打开的话会跳转Zero Trust认证页面,不确定内置浏览器是否会记录保存cookie信息,不然打开一次就会认证一次会很麻烦。 目前Mini App是没有用Zero Trust的,但是访问 API是会触发Zero Trust规则,所以请求会失败。
Author
Owner

@dreamhunter2333 commented on GitHub (Mar 31, 2025):

OK 有空我测试一下

可以使用 pages func 转发,不过就没有 zero trust 的功能了

<!-- gh-comment-id:2766425269 --> @dreamhunter2333 commented on GitHub (Mar 31, 2025): OK 有空我测试一下 可以使用 pages func 转发,不过就没有 zero trust 的功能了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare_temp_email#231
No description provided.