- Technical documentation
- API docs
DOMString getOwnUrl(Boolean isSecure)
Get the URL of application or spacelet web server.
|isSecure||If the value is false the URL is the HTTP server URL and if it is true the URL is the HTTPS server URL.|
This method returns the URL only if it is called from an application or a spacelet. The return value is null If the method is called from a web page.
The returned URL is in the following format.
Scheme is http if isSecure is false and https if isSecure is true. The port is the port of the server. The port is mapped by Docker to a port visible in the host machine and it can be expected to be 80 or 443.