Fix stream discovery URL for Home Assistant Ingress
- Remove new URL() construction with window.location.origin - Use simple relative path like camera-search API - Fixes stream discovery in HA Ingress environment - Maintains compatibility with direct Docker installations - Version bump to 1.0.3
This commit is contained in:
@@ -12,9 +12,7 @@ export class StreamDiscoveryAPI {
|
||||
discover(request, callbacks) {
|
||||
this.close();
|
||||
|
||||
const url = new URL(`${this.baseURL}api/v1/streams/discover`, window.location.origin);
|
||||
|
||||
fetch(url, {
|
||||
fetch(`${this.baseURL}api/v1/streams/discover`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user