Refused to set unsafe header "User-Agent"

I want to change the header's User-Agent to something like {"User-Agent":"someCustomValue"} but I get this error:

Refused to set unsafe header "User-Agent"

How to solve this? The problem only appears in flutter-web, it's ok in android and ios.



from Recent Questions - Stack Overflow https://ift.tt/3A8trWW
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation