l-switch Firefox

l-switch

Proxy localhost API calls to production or staging with JSON rules. Supports CHIPS(partitioned cookies): reads partition-scoped cookies and injects them on redirect so local dev can authenticate against real backends—no companion extension on Firefox

Features & Capabilities

l-switch is the Firefox client for pm-switch: a developer tool for running local front-end code against real production or staging APIs.

Modern browsers enforce CHIPS (Cookies Having Independent Partitioned State). After CHIPS, whether a cookie is sent depends not only on Domain and SameSite, but also on the cookie’s partition (the top-level site context). A simple in-browser redirect from localhost to an online host is often not enough—partitioned cookies may not ride along automatically.

l-switch handles that for you: when a proxy rule matches, it reads partitioned cookies for the target site and injects them (and related headers such as CSRF tokens) into the proxied request, so your local app can still call authenticated online backends.

Key features

  • CHIPS / partitioned cookie support — Uses cookies API with partition awareness and injects the right cookies on redirected traffic (see getPartitionCookie in the extension).
  • URL proxy rulessrctgt matching (string or regex).
  • Header helpers — Referer, Origin, optional headersToAdd / headersToDel, and cors host lists for cross-origin scripts after redirect.
  • JSON configuration — Edit rules in the popup; toggle the toolbar switch to enable or disable.
On Firefox, proxy + cookie injection runs in one extension (async webRequest blocking). On Chrome, the same workflow still uses m-switch + p-switch; Firefox users only need l-switch.

Who it is for

Front-end and full-stack developers who:

  • Develop on localhost (or another local origin) but need live backend responses
  • Rely on partitioned (CHIPS) cookies for login/session on the target domain
  • Want the xswitch / pm-switch workflow without manually copying cookies
Quick start
  1. Open the popup and edit JSON (proxy, optional cors).
  2. Turn the extension on.
  3. Reload your app; use credentials: "include" on fetches when cookies are required.
Example:
{
  "proxy": [
    {
      "src": "http://127.0.0.1:7001/(.*)\.json",
      "tgt": "<a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/b6a74d1010abdeb5d19016e88f4b5316c2d5222ff5561ef932d18ac93a03bb12/https%3A//example.com/%241.json" rel="nofollow">https://example.com/$1.json</a>",
      "headersToAdd": [
        {
          "headerName": "X-Xsrf-Token",
          "fromCookieName": "XSRF-TOKEN"
        }
      ]
    }
  ],
  "cors": ["<a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/2141eac2eacda036b00afc30fd0a7e6f24e9bddf402cf4393fe5144f468147e8/http%3A//example.com" rel="nofollow">example.com</a>"]
}

User Growth & Download Statistics

Manifest V2 Add-on
By:
bingrulin
Daily users:
1
Version:
1.0.22 Last updated: 2026-05-28
Version code:
6276631
Creation date:
2026-05-25
Risk:
High risk impact High risk likelihood
Permissions:
Size:
1.13MB
Email:
bi*****@outlook.com
Full description:
See detailed description
Source:
Firefox Add-ons Store
Data ingested on:
2026-07-27
Compare stats and ranking:

Contact the developer

Chrome-Stats does not own this Firefox add-on. Please use these information below to contact the Firefox add-on developer.
Developed by:
bingrulin
Firefox Add-ons Store
https://addons.mozilla.org/firefox/addon/l-switch/
Email:
bi*****@outlook.com

Is l-switch Safe?

Risk impact
Risk impact measures the level of extra permissions an extension has access to. A low risk impact extension cannot do much harms, whereas a high risk impact extension can do a lot of damage like stealing your password, bypassing your security settings, and accessing your personal data. High risk impact extensions are not necessarily malicious. However, if they do turn malicious, they can be very harmful.

l-switch requires some sensitive permissions that could impact your browser and data security. Exercise caution before installing.

Risk impact analysis details
  • Critical Grants access to browser tabs, which can be used to track user browsing habits and history, presenting a privacy concern.
  • Critical ****** ****** ** *** ********* ****** * *********** ******** **** ** ** *** ******* *** ****** **** **** *** ******* *****
  • High ****** *** ********* ** ******* *** ******* ******* ** ****** *** *** ******** ******
Risk likelihood
Risk likelihood measures the probability that a Firefox add-on may turn malicious. This is determined by the publisher and the Firefox add-on reputation on Firefox Add-ons Store, the amount of time the Firefox add-on has been around, and other signals about the Firefox add-on. Our algorithms are not perfect, and are subject to change as we discover new ways to detect malicious extensions. We recommend that you always exercise caution when installing a Firefox add-on.

l-switch is recently added, and hasn't been around long enough for us to gather enough data to accurately assess its risk level.

Risk likelihood analysis details
  • High This extension has low user count. Unpopular extensions may not be stable or safe.
  • Medium **** ********* *** ******* ** *** **** * ******* *** ******* *** *** ** ****** ** *****
  • Medium **** ********* *** ***** ** *** **** * ******* *** ********** *** *** ** ****** ** *****
Extension Guard
Extension Guard

Discover every extension in use, analyze risks, and enforce blocking policies with Extension Guard

Secure Your Browser
Upgrade to see full risk analysis details

Best l-switch Alternatives

Here are some Firefox add-ons that are similar to l-switch: