diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index b3818c8de..983a27e11 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts @@ -657,7 +657,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { : null, authorizationHeader: () => this.authService.getRequestHeaderValue(), - serverUrl: environment.originServerUrl, + serverUrl: environment.originServerUrl || window.location.origin, videoFileToken: () => videoFileToken, requiresAuth: videoRequiresAuth(video),