Skip to content

Fix for User-Agent / Cloudflare authentication loop #3369

@tsr

Description

@tsr

Hi itch-Team,

i looked into the currently famous Cloudflare-Captcha problem (see forum) as i also was getting extremely annoyed by it and likely found an easy fix.

You just have to add the following line in the main.ts after onReady to override the UA:

  let onReady = () => {
    app.userAgentFallback = userAgent();

At least this works for me locally in dev mode. I guess that sometimes there is no custom UA set and instead the default of Electron is sent which confuses Cloudflare.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions