Loja Integrada - forçar SSL (https)
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
<!-- | |
1. Crie um novo código HTML (https://app.lojaintegrada.com.br/painel/configuracao/html/criar) | |
2. Descrição: Forçar SSL | |
3. Local de publicação: Rodapé | |
4. Página: Todas as páginas | |
5. Tipo: Javascript | |
6. Conteúdo: cole todo o código abaixo | |
7. Divirta-se | |
--> | |
if (location.protocol != 'https:') { | |
location.href = 'https:' + window.location.href.substring(window.location.protocol.length); | |
} | |
$('a').each(function() { | |
$(this).attr('href', this.href.replace('http:','https:')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment