Skip to content

How to deeply spoof the browser fingerprint User-Agent? #5015

Description

@yuyiqilin

Is there an existing issue for this?

  • I have searched both open/closed issues, no issue already exists.

CefSharp Version

131.3.10

Operating System

Windows 11

Architecture

x64

.Net Version

.Net 4.8.1

Implementation

WPF

Reproduction Steps

How to deeply spoof the browser fingerprint User-Agent? After I modified the User-Agent, the request's User-Agent indeed changed, but the server refused to respond. When I don’t spoof the User-Agent, the response is normal. I think it’s because the front-end code, such as JavaScript, detects the real User-Agent, and since it doesn’t match, the service is rejected. How can I spoof or deceive the JavaScript detection

Expected behavior

How can I spoof or deceive the JavaScript detection

Actual behavior

I can not spoof or deceive the JavaScript detection

Regression?

No response

Known Workarounds

No response

Does this problem also occur in the CEF Sample Application

Yes using WPF/OffScreen command line args

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions