Electron WebContentsView support?

What is the name of the domain?

What is the error number?

600010

What is the error message?

Uncaught TurnstileError: [Cloudflare Turnstile]

What is the issue you’re encountering

While embeding this website in a electron WebContentsView Turnstile is not working and I am getting this error. Uncaught TurnstileError: [Cloudflare Turnstile] Error: 600010. at m (api.js:1:10662) at k (api.js:1:36172)

What steps have you taken to resolve the issue?

  • Provided proper user agent.
  • Opted for the following secure webContents settings:
    webPreferences: {
      nodeIntegration: false,
      contextIsolation: true,
      sandbox: true,
      enableBlinkFeatures: 'ExecutionContext',
      webSecurity: true,
      allowRunningInsecureContent: false,
      offscreen: false,
      experimentalFeatures: true,
      safeDialogs: true,
      safeDialogsMessage: 'Are you sure?',
      additionalArguments: [],
      nodeIntegrationInSubFrames: false,
      nodeIntegrationInWorker: false,
      webviewTag: false,
      plugins: false,
      scrollBounce: false,
      spellcheck: true
    }
  • In other web browsers Turnstile working fine. Tested in Chrome, Edge and Firefox.

Still it’s not working when opening the website inside Electrons WebContentsView and will always show the error message.

What are the steps to reproduce the issue?

Embed this website in a electrons WebContentsView.

Screenshot of the error

Hi,

This 600010 is classified as a configuration error.

Try these steps:

  • Clear your browser’s cache and cookies.
  • Disable any browser extensions that might block scripts or cookies.

If the issue persists, verify that the Turnstile site key and secret key are correctly set up in both the site’s backend and frontend.

Using electron’s default user agent solves this problem