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

edge-cors

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

edge-cors - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "edge-cors",
"version": "0.2.0",
"version": "0.2.1",
"description": "CORS for edge workers, works with Next.js Middleware",

@@ -5,0 +5,0 @@ "type": "module",

@@ -5,5 +5,8 @@ # Edge CORS

![npm (tag)](https://img.shields.io/npm/v/edge-cors/latest)
[![nest.land](https://nest.land/badge.svg)](https://nest.land/package/edge_cors)
This module is a modified version of [expressjs/cors](https://github.com/expressjs/cors), which works for Node.js and should be your way to go if you're looking for Node.js support.
## How to use
## Installation

@@ -16,2 +19,10 @@ The module is available in npm, and as a Deno module. To install it from npm:

[Skypack](https://www.skypack.dev/view/edge-cors) is also an option, and works with [Next.js URL imports](https://nextjs.org/docs/api-reference/next.config.js/url-imports):
```ts
import cors from 'https://cdn.skypack.dev/edge-cors'
```
### Deno
To install it in Deno there are two options, using [deno.land/x/edge_cors](https://deno.land/x/edge_cors):

@@ -29,2 +40,4 @@

## How to use
### Basic Usage in Next.js

@@ -31,0 +44,0 @@

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