baseUrl


baseUrlstringRead-only

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

Premium sites: Premium site baseUrl

Free sites: Free site baseUrl

Get the base URL of a call to an HTTP function
JavaScript
// In http-functions.js export function use_myFunction(request) { let baseUrl = request.baseUrl; // Premium site: "https://www.domain.com/_functions" // Free site: "https://user_name.wixsite.com/mysite/_functions" }
Did this help?