Open citasionm opened 2 years ago
const requestIp = require('request-ip'); exports.ipMiddleware = (req, res, next) => { req.clientIp = requestIp.getClientIp(req); next(); };
I have the above code and even when I am outputting in the console.log the req.clientIp it is null. This is through firebase running locally via an emulator. Ideas on why that may be?
The request is sent from within an iframe in a website.
I have the above code and even when I am outputting in the console.log the req.clientIp it is null. This is through firebase running locally via an emulator. Ideas on why that may be?
The request is sent from within an iframe in a website.