Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thiradus/cors-middleware

💻🌐 A simplistic yet effective Cross origin resource sharing Express.js middleware.
https://github.com/thiradus/cors-middleware

cors cors-headers cross-origin cross-origin-resource-sharing express expressjs javascript middleware

Last synced: 5 days ago
JSON representation

💻🌐 A simplistic yet effective Cross origin resource sharing Express.js middleware.

Awesome Lists containing this project

README

        

[![Thiradus Dark Banner](https://raw.githubusercontent.com/Thiradus/Branding/master/Graphics/Banner/Banner-Dark.png)](https://thiradus.com/)

CORS Middleware

[![CodeFactor](https://www.codefactor.io/repository/github/thiradus/cors-middleware/badge)](https://www.codefactor.io/repository/github/thiradus/cors-middleware) [![Depfu](https://badges.depfu.com/badges/20285344da99d629b259c64b9591d1cd/overview.svg)](https://depfu.com/github/Thiradus/cors-middleware?project_id=11307) ![Downloads](https://img.shields.io/npm/dt/thiradus-cors-middleware?style=flat) ![MIT License](https://img.shields.io/github/license/Thiradus/cors-middleware?style=flat)

## Overview

A simplistic yet effective Cross-Origin Resource Sharing [Express.js](https://expressjs.com/) Middleware.

## Installation

```Bash
npm install thiradus-cors-middleware --save
```

## Usage

### Example

```JavaScript
const cors = require('thiradus-cors-middleware');
const express = require('express');

const app = express();

app.use(cors);
```

## License

This repository is licensed under the [MIT](./LICENSE.md) License © 2015-2021 [Thiradus](https://github.com/Thiradus/)