![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
feathers-express-ip
Advanced tools
With feathers-express-ip you can make your own solution for:
npm install feathers-express-ip --save
yarn add feathers-express-ip
Import package
// Typescript
import { feathersIp, feathersIpSocketIO } from 'feathers-express-ip';
// Javascript
const { feathersIp, feathersIpSocketIO } = require('feathers-express-ip');
For working with socket connections:
// Replace following line in src/app.ts:
app.configure(socketio());
// With following code:
app.configure(socketio(function (io) {
feathersIpSocketIO(io, 'ip');
}));
For working with standard HTTP requests:
// After following line in src/app.ts:
app.configure(express.rest());
// Add following line:
app.use(feathersIp('ip'));
Read provided IP address in Feathers hook:
(context: HookContext) => {
console.log(context.params.ip);
}
Reverse proxies not only hide IP address of your app from the user, they also hide the user's IP address from the app. If you want to get user's IP address while using reverse proxy such as Nginx, you will need configure your Nginx server accordingly.
Read explanation on Nginx website
In short, you can add following code in your Nginx config to set the headers:
proxy_pass_header Set-Cookie;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
FAQs
Expose client IP address to your Feathers application
The npm package feathers-express-ip receives a total of 293 weekly downloads. As such, feathers-express-ip popularity was classified as not popular.
We found that feathers-express-ip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.