segler-alex / radiobrowser-api-rust

radio-browser API implementation in rust
GNU Affero General Public License v3.0
234 stars 104 forks source link

Using the browser to search, cannot change user agent. #205

Closed CelliesProjects closed 1 year ago

CelliesProjects commented 1 year ago

Hi, I added a web radio search to the esp32 app eStreamPlayer and would like to thank the dev for all the effort put into this. Works really smooth.

I use the api through the web browser and tried changing the user-agent in JS, but it seems that that is not possible anymore.

If I check the -supposedly changed- useragent I see Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 or the equivalent string from whatever browser I use.

See https://github.com/CelliesProjects/eStreamplayer32-vs1053-pio/blob/main/src/index.htm#L502-L530 and https://github.com/CelliesProjects/eStreamplayer32-vs1053-pio/blob/main/src/index.htm#L996

Or am I missing something here?