Comparing version 0.2.0 to 0.2.1
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14865
201