Skip to content

Refused to set unsafe header "User-Agent" #111

@Wackymax

Description

@Wackymax

Dart version: 2.19.2
Flutter version: 3.7.5

Describe the bug
When using the package on web the web browsers complain about the following error message Refused to set unsafe header "User-Agent".

To Reproduce
Compile a Flutter application for web and try to perform a search on Algolia.

Expected behavior
The search request should go through to Algolia. Maybe check for kIsWeb parameter to determine if the User-Agent string should be set on the request.

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions