Skip to content
This repository was archived by the owner on Feb 14, 2018. It is now read-only.

Update PinterestPinWidget.js to handle HTTPS - #25

Open
samuelgoff wants to merge 2 commits into
pinterest:masterfrom
samuelgoff:patch-1
Open

Update PinterestPinWidget.js to handle HTTPS#25
samuelgoff wants to merge 2 commits into
pinterest:masterfrom
samuelgoff:patch-1

Conversation

@samuelgoff

@samuelgoff samuelgoff commented Feb 8, 2017

Copy link
Copy Markdown

Since the URLs returned are hard-coded to HTTP, on a forced-HTTPS site this throws a Mixed Content warning for every image rendered into the widget (in our case, that's 200 warning!). This change auto-detects the current protocol, then replaces the URL's protocol to HTTPS if need be.

Since the URLs returned are hard-coded to http, on a force-http site this throws a Mixed Content warning for every image rendered into the widget (in our case, 200). This change auto-detects the current protocol, then replaces the URL's protocol to https if need be.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant