Socket
Book a DemoInstallSign in
Socket

isolated-middleware

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isolated-middleware

A Connect/Express middleware for Enabling cross-origin-isolation.

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
8
700%
Maintainers
1
Weekly downloads
 
Created
Source

isolated

A Connect/Express middleware for Enabling cross-origin-isolation.

If you want to user isolated on koa app, use koa-isolated.

Cross-origin isolation enables a web page to use powerful features such as SharedArrayBuffer. This article explains how to enable cross-origin isolation on your website.

The isolation need to set the header for Cross-Origin-Opener-Policy(CROP) and Cross-Origin-Embedder-Policy(COEP).

If you want to use SharedArrayBuffer, performance.measureUserAgentSpecificMemory() or high resolution timer with better precision, you should enable cross-origin isolation.

Installation

use npm

npm install isolated-middleware

or use yarn

yarn add isolated-middleware

Quick start

Express

const express = require('express');
const isolated = require('isolated-middleware');

const app = express();
app.use(isolated());

Connect

const connect = require('connect');
const isolated = require('isolated-middleware');

const app = connect();
app.use(isolated());

License

MIT

Keywords

SharedArrayBuffer

FAQs

Package last updated on 26 Oct 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.