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*"]
};
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*"]
};