Search.../

baseUrl

Returns the base URL of a call to an HTTP function.

Description

Premium sites: Premium site baseUrl

Free sites: Free site baseUrl

Type:

stringRead Only

Was this helpful?

Get the base URL of a call to an HTTP function

Code Example

Copy Code
1// In http-functions.js
2
3export function use_myFunction(request) {
4
5 let baseUrl = request.baseUrl;
6 // Premium site: "https://www.domain.com/_functions"
7 // Free site: "https://user.wix-sites.com/mysite/_functions"
8
9}