Answers for "javascript test https"

0

javascript test https

// force https connection
if (location.protocol !== 'https:') {
    location.replace(`https:${location.href.substring(location.protocol.length)}`);
}
Posted by: Guest on March-02-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language