Created
January 6, 2016 17:43
-
-
Save gabrielcorado/f1bcdebafa7aa1d149b5 to your computer and use it in GitHub Desktop.
Force SSL JavaScript front-end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace the current protocol (http) to https | |
window.location.href = window.location.href.replace('http', 'https'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment