Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lofor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lofor

Lofor is a lightweight development server which acts as a reverse proxy to solve your cors problems.

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

Lofor - A reverse proxy for development

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.

How lofor solves the problem?

In lofor, you can map multiple hosts to single one.

Installation

pip install lofor

Forward command

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

Start lofor server

The server will be listening at http://localhost:7777

lofor start

To list lofor forwards

lofor list

Remove lofor forwards

lofor remove /api/

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc