mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-26 06:15:52 +03:00
[GH-ISSUE #506] [BUG] o.domains is undefined #195
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @seriaati on GitHub (Dec 3, 2024).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/506
复现步骤
照著文檔的每個步驟操作進行後端及前端設置

前往前端網站,跳出 o.domains is undefined 錯誤
(已確認 Variables & Secrets 帶有 DOMAINS 參數)
(創建郵箱時沒有域名)
预期行为
...
部署方式
浏览器环境
Firefox 132.0.1
@dreamhunter2333 commented on GitHub (Dec 3, 2024):
感谢反馈,可以 F12 查看下 api 请求的是否为后端地址么
@seriaati commented on GitHub (Dec 3, 2024):
@dreamhunter2333 是
@dreamhunter2333 commented on GitHub (Dec 3, 2024):
open_api/settings 返回的 json 中
defaultDomains或者domains正确么@seriaati commented on GitHub (Dec 3, 2024):
@dreamhunter2333

open_api/settings 返回的是一個 HTML
@seriaati commented on GitHub (Dec 3, 2024):
@dreamhunter2333 搞錯地址了,域名確實在裡面

@dreamhunter2333 commented on GitHub (Dec 4, 2024):
看起来是后端地址配置错了,改成正确的还有错误么
@seriaati commented on GitHub (Dec 4, 2024):
@dreamhunter2333
我的前端是照著文檔配置的

訪問 https://cloudflare-temp-mail.seria-ati.workers.dev/open_api/settings 可以獲取到 JSON 回應
但是在前端按 F12 檢查的話,會發現它請求了 https://temp-mail.seria.moe/cloudflare-temp-mail.seria-ati.workers.dev/open_api/settings
我的前端網址是 https://temp-mail.seria.moe
後端是 https://cloudflare-temp-mail.seria-ati.workers.dev
更新:

很奇怪,使用 pages 給的預設網址 https://cloudflare-temp-mail.pages.dev/ 就正常
使用我自己的域名 https://temp-mail.seria.moe 就請求到了錯誤的後端網址
@dreamhunter2333 commented on GitHub (Dec 4, 2024):
请清除浏览器缓存再尝试,我这打开的你的网页都正常
@seriaati commented on GitHub (Dec 4, 2024):
我這裡也都正常了,感謝幫助