Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

koa-isolated

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-isolated

A koa middleware for Enabling cross-origin-isolation.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

koa-isolated

A koa middleware for Enabling cross-origin-isolation.

Cross-origin isolation enables a web page to use powerful features such as SharedArrayBuffer. If you want to use SharedArrayBuffer, performance.measureUserAgentSpecificMemory() or high resolution timer with better precision, you should enable cross-origin isolation.

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

Installation

use npm

npm install koa-isolated

or use yarn

yarn add koa-isolated

Quick start

const Koa = require('koa');
const isolated = require('koa-isolated');

const app = new Koa();
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