Skip to content

Product Gallery Vimeo Videos Don't Play Over HTTPS #8574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pioneerathletics opened this issue Feb 16, 2017 · 7 comments
Closed

Product Gallery Vimeo Videos Don't Play Over HTTPS #8574

pioneerathletics opened this issue Feb 16, 2017 · 7 comments
Labels
Fixed in 2.1.x The issue has been fixed in 2.1 release line Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@pioneerathletics
Copy link

Preconditions

  1. Magento version 2.1.4 CE (PHP- 7.0.13)
  2. Base URL set to https

Steps to reproduce

  1. Changed the Base URL to https in order to make the entire site secure
  2. Added a product with a Vimeo Video in the product gallery (used https url here as well)

Expected result

  1. Product video should play as it did when base URL was set to http

Actual result

  1. The video would not play
  2. According to Dev Tools Console output -- Blocked due to Mixed Content error "( This request has been blocked; the content must be served over HTTPS.)"
@orlangur
Copy link
Contributor

You should see in Dev Tools Console which content was served via HTTP. There would be no error if everything was served via HTTPS in fact.

@pioneerathletics
Copy link
Author

The content served via http is the video player. Even though, the url to Vimeo is https. That's why it is strange that the video is being blocked.

Mixed Content: The page at 'https://website.com/example' was loaded over HTTPS, but requested an insecure resource 'http://player.vimeo.com/video/1222222222222?api=1&player_id=vimeo12222222222222222&autoplay=1'. This request has been blocked; the content must be served over HTTPS.
(anonymous) @ jquery.js:5707

@smokygeek17
Copy link

same problem. any fix?

@pioneerathletics
Copy link
Author

I fixed the issue by creating Magento_ProductVideo>web>js>load-player.js in my theme.
Then find line 320 in load-player.js and change http://player.vimeo.com/video/ to https://player.vimeo.com/video/

Now video plays as expected.

@korostii
Copy link
Contributor

So, even though you've found a working workaround, it's still a bug in Magento CE?

Wouldn't you want to have it fixed in Magento itself, as well?
Just a friendly FYI: keeping the issue open might help with that, and a pull request is also an option.

@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-72278

@magento-team magento-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Sep 13, 2017
@magento-engcom-team
Copy link
Contributor

Hi @pioneerathletics the issue has been fixed in 2.1.10 and will be available soon

@magento-engcom-team magento-engcom-team added the Fixed in 2.1.x The issue has been fixed in 2.1 release line label Oct 6, 2017
magento-devops-reposync-svc pushed a commit that referenced this issue Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.1.x The issue has been fixed in 2.1 release line Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

6 participants