Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 341 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 341 Bytes

Next.js Edge Runtime: CORS Demo

Demos nextjs-edge-cors. See docs for more info.

// src/middleware.ts

import { CorsMiddleware } from "nextjs-edge-cors";

export const middleware = CorsMiddleware({
  origin: "*"
})

export const config = {
  matcher: ["/api/cors/:path*"]
};