const express = require('express'); const proxy = require('express-http-proxy'); const app = express(); const targetUrl = 'https://api.wolframalpha.com'; const port = 7860; app.use('/', proxy(targetUrl, { https: true, proxyReqOptDecorator: (proxyReqOpts, srcReq) => { console.log(srcReq, proxyReqOpts); return proxyReqOpts; }, })); app.listen(port, () => { console.log(`WARP`); });