segler-alex / radiobrowser-api-rust

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

Change CORS preflight request to include `User-Agent` header #86

Closed ivandotv closed 3 years ago

ivandotv commented 3 years ago

Since the API can be accessed from the front end (browser). The API docs ask us to use User-Agent request header, however the CORS preflight request doesn't allow that header. So browser request is blocked. You can observe the issue in Firefox but not in Chrome, since Chrome has a bug and it's dropping the header.

segler-alex commented 3 years ago

fixed in release 0.7.3