Answers for "Nodejs get base url"

6

js get base url

var url = window.location.origin;
Posted by: Guest on August-26-2020
0

node get current url

const fullUrl = `${req.protocol}://${req.get("host")}${req.originalUrl}`;
Posted by: Guest on May-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language