Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Lofor is a lightweight development server which acts as a reverse proxy to solve your cors problems.
Lofor is a lightweight development server which acts as reverse proxy to solve your cors header problems.
CORS is a common problem faced when developing frontend and backend separated projects.
During development, you may like to use a backend in localhost:7777/api/
and
frontend in localhost:7777
.
This becomes more complex when you use two different frameworks for backend and frontend.
In lofor, you can map multiple hosts to single one.
pip install lofor
lofor forward / http://localhost:5173 # Mapping to svelte dev server
lofor forward /api/ https://localhost:8000 # Mapping to django's dev server
# More examples
lofor forward api.localhost /api/ https://localhost:8000
lofor forward localhost http://localhost:3000
# You can also map to any real server
# lofor forward / https://example.com
The server will be listening at http://localhost:7777
lofor start
lofor list
lofor remove /api/
FAQs
Lofor is a lightweight development server which acts as a reverse proxy to solve your cors problems.
We found that lofor demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.