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