nodes/uibuilder.js
function localMiddleware (req, res, next) {
            // Tell the client what Socket.IO namespace to use,
            // trim the leading slash because the cookie will turn it into a %2F
            res.setHeader('uibuilder-namespace', node.ioNamespace)
            res.cookie('uibuilder-namespace', tilib.trimSlashes(node.ioNamespace), {path: node.url, sameSite: true})
            next()
        }
function localMiddleware (req, res, next) {
            // Tell the client what Socket.IO namespace to use,
            // trim the leading slash because the cookie will turn it into a %2F
            res.setHeader('uibuilder-namespace', node.ioNamespace)
            res.cookie('uibuilder-namespace', tilib.trimSlashes(node.ioNamespace), {path: node.url, sameSite: true})
            next()
        }
function localMiddleware ( req , res , next ) { // Tell the client what Socket.IO namespace to use, // trim the leading slash because the cookie will turn it into a %2F res . setHeader ( 'uibuilder-namespace' , node . ioNamespace ) res . cookie ( 'uibuilder-namespace' , tilib . trimSlashes ( node . ioNamespace ) , { path : node . url , sameSite : true } ) next ( ) }
This ExpressJS middleware runs when the uibuilder page loads
@see https://expressjs.com/en/guide/using-middleware.html
This ExpressJS middleware runs when the uibuilder page loads