Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
How to find out what protocol is used to connect to the site
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
How to find out what protocol is used to connect to the site
How to find out what protocol is used to connect to the site (SSL or not)?
Wbr, miasoft.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: How to find out what protocol is used to connect to the
How do you connect? Can you give a little more detail?
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Re: How to find out what protocol is used to connect to the
I have two different links:
for SSL - https://xx.xx.yy.zzz:8001/proj/
not SSL - http://xx.xx.yy.zzz:8000/proj/
The user knows which link to choose: SSL with full functionality or notSSL with minimum.
I would like to programmatically restrict functionality, issue messages, warnings, etc.
for SSL - https://xx.xx.yy.zzz:8001/proj/
not SSL - http://xx.xx.yy.zzz:8000/proj/
The user knows which link to choose: SSL with full functionality or notSSL with minimum.
I would like to programmatically restrict functionality, issue messages, warnings, etc.
Wbr, miasoft.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: How to find out what protocol is used to connect to the
The JavaScript returns the protocol of the current URL.
Code: Select all
location.protocol
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Re: How to find out what protocol is used to connect to the
Thanks, kev1n!kev1n wrote:The JavaScriptreturns the protocol of the current URL.Code: Select all
location.protocol
Wbr, miasoft.