react-pinterest icon indicating copy to clipboard operation
react-pinterest copied to clipboard

Update PinterestPinWidget.js to handle HTTPS

Open samuelgoff opened this issue 9 years ago • 0 comments

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.

samuelgoff avatar Feb 08 '17 19:02 samuelgoff