Skip to content

Commit ea8e221

Browse files
ENGCOM-804: Backport of PR-10748 for Magento 2.2: Always use https for Vimeo vide… #13977
- Merge Pull Request #13977 from hostep/magento2:backport-pr-10768-for-2.2 - Merged commits: 1. 156b0f3
2 parents 9c538a1 + 156b0f3 commit ea8e221

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/ProductVideo/view/adminhtml/web/js/get-video-information.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ define([
302302
additionalParams += '&autoplay=1';
303303
}
304304

305-
src = window.location.protocol + '//player.vimeo.com/video/' +
305+
src = 'https://player.vimeo.com/video/' +
306306
this._code + '?api=1&player_id=vimeo' +
307307
this._code +
308308
timestamp +
@@ -525,7 +525,7 @@ define([
525525
);
526526
} else if (type === 'vimeo') {
527527
$.ajax({
528-
url: window.location.protocol + '//www.vimeo.com/api/v2/video/' + id + '.json',
528+
url: 'https://www.vimeo.com/api/v2/video/' + id + '.json',
529529
dataType: 'jsonp',
530530
data: {
531531
format: 'json'

app/code/Magento/ProductVideo/view/frontend/web/js/load-player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ define(['jquery', 'jquery/ui'], function ($) {
317317
if (this._loop) {
318318
additionalParams += '&loop=1';
319319
}
320-
src = window.location.protocol + '//player.vimeo.com/video/' +
320+
src = 'https://player.vimeo.com/video/' +
321321
this._code + '?api=1&player_id=vimeo' +
322322
this._code +
323323
timestamp +

0 commit comments

Comments
 (0)