gemini-proxy-client 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,10 @@ export class BrowserManager {
33
33
  console.log(chalk.gray(`指纹配置: ${fingerprint.viewport.width}x${fingerprint.viewport.height}, ${fingerprint.locale}, ${fingerprint.timezoneId}`));
34
34
  this.browser = await Camoufox({
35
35
  headless: this.options.headless,
36
+ // 禁用 Cross-Origin-Opener-Policy,允许操作跨域 iframe 中的元素
37
+ disable_coop: true,
38
+ // 允许在主世界执行脚本,用于 iframe 内的 evaluate
39
+ main_world_eval: true,
36
40
  });
37
41
  this.context = await this.browser.newContext({
38
42
  viewport: fingerprint.viewport,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemini-proxy-client",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Gemini Proxy Build App 客户端 - 使用 Camoufox 自动保持连接",
5
5
  "main": "dist/index.js",
6
6
  "bin": {