Skip to content
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

Update iframe URLs to always use HTTPS #21

Merged
merged 1 commit into from
Jun 9, 2017
Merged

Update iframe URLs to always use HTTPS #21

merged 1 commit into from
Jun 9, 2017

Conversation

ScottHamper
Copy link
Contributor

Hey All,

I'm applying a content security policy to a website I'm working on that only allows iframes to be embedded from https://www.youtube.com. When working on a dev version of the site on my local machine, the iframe fails to load because the plugin currently uses protocol-relative URLs and I am not developing in an HTTPS environment.

Additionally, YouTube enforces a redirect from HTTP -> HTTPS, so a protocol-relative URL only adds unnecessary overhead when loading a video on a Grav site served over HTTP.

To resolve these issues, this pull request updates the plugin to always use HTTPS URLs for YouTube.

Regards,
--- Scott

@flaviocopes flaviocopes merged commit 403d49b into getgrav:develop Jun 9, 2017
@ScottHamper ScottHamper deleted the https-urls branch June 9, 2017 17:45
@ScottHamper
Copy link
Contributor Author

Hey All,

Could we get a release published that includes this change? There hasn't been any other commits to the plugin since this one on June 9 (nor any commits other than this one since the 2.0.3 release), and I'd really like to have this issue officially resolved.

@rhukster
Copy link
Member

Done. Lots of updates are pending releases.. i'm starting to go through the repos now and get stuff out.

@ScottHamper
Copy link
Contributor Author

Thanks, Andy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants