Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP is null, request to firebase emulator from within website iframe #50

Open
citasionm opened this issue Feb 3, 2022 · 0 comments
Open

Comments

@citasionm
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant