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

@qpoint/mask-urls

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qpoint/mask-urls

A Qpoint adapter for masking URLs behind a reverse proxy

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

qpoint-mask-urls

A Qpoint adapter for masking URLs behind a reverse proxy

Overview

When proxying requests upstream, html links are generated for the upstream location.

Consider the following:

An app hosted on vercel would likely produce html with a link URL: https://qpoint-site.vercel.app/about-us

The proxy needs to mask the url to match the outer domain URL: https://qpoint.io/about-us

Usage

import Endpoint from "@qpoint/endpoint";
import proxy from "@qpoint/proxy";
import maskUrls from "@qpoint/mask-urls";
import rewriteHtml from "@qpoint/rewrite-html";

export default new Endpoint()
  // proxy to qpoint.io
  .use(proxy({ appUrl: "https://qpoint.io" }))

  // mask the urls to match the proxy endpoint
  .use(maskUrls())

  // activate the rewrite
  .use(rewriteHtml())

Installation

npm add @qpoint/mask-urls

Advanced

basePath can be provided with the config if the upstream app is nested within the path.

FAQs

Package last updated on 05 Jan 2024

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