@borderless/fetch-cors
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Fetch CORS

NPM version NPM downloads Build status Test coverage

CORS middleware for fetch-based router.

Installation

npm install @borderless/fetch-cors --save

Usage

import { compose } from "throwback";
import { cors } from "@borderless/fetch-cors";
import { get } from "@borderless/fetch-router";

const app = compose([cors(), get("/test", () => new Response("hello world"))]);

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

Package Sidebar

Install

npm i @borderless/fetch-cors

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

30.1 kB

Total Files

13

Last publish

Collaborators

  • blakeembrey