Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript test https

// force https connection
if (location.protocol !== 'https:') {
    location.replace(`https:${location.href.substring(location.protocol.length)}`);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #test #https
ADD COMMENT
Topic
Name
5+8 =