Closed Loveday-Alfred closed 1 month ago
That is an upstream issue. API is not served over a secure connection. https://github.com/segler-alex/radiobrowser-api-rust/issues/122
In order to use the API, first, an API endpoint must be determined, that is just how the original creator has implemented the API. https://github.com/ivandotv/radio-browser-api/blob/15cd18383ad06b4f437533e8a302acb17a6169c6/src/radioBrowser.ts#L56-L59
You can check out the setBaseUrl
method and set the base URL manually or you can proxy the request thru a backend server.
anyone up to fix this?
am having this problem with the library...but it seems to work fine on localhost but not on the deployed version. Mixed Content: The page at 'https://naija-radio-stream.netlify.app/' was loaded over HTTPS, but requested an insecure resource 'http://all.api.radio-browser.info/json/servers'. This request has been blocked; the content must be served over HTTPS.