Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions flows/openai/content/plus-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,9 @@ function findHostedCheckoutUrl(payload = {}) {

async function createPlusCheckoutSession(options = {}) {
await waitForDocumentComplete();
if (location.origin !== 'https://chatgpt.com') {
throw new Error('付款操作只允许在 chatgpt.com 域名下执行。');
}
log('Plus:正在读取 ChatGPT 登录会话...');

const sessionResponse = await fetch('/api/auth/session', {
Expand Down