Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Wackymax opened this issue Mar 9, 2023 · 0 comments · May be fixed by #112
Open

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

Wackymax opened this issue Mar 9, 2023 · 0 comments · May be fixed by #112
Labels
bug Something isn't working

Comments

@Wackymax
Copy link

Wackymax commented Mar 9, 2023

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

@Wackymax Wackymax added the bug Something isn't working label Mar 9, 2023
@Wackymax Wackymax linked a pull request Mar 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant