Adding CORS Configuration to HTTP Server
Hi all, does anyone know how I can go about adding cors configuration to a http server?
import { HttpRpcRouter } from "@effect/rpc-http"
import { HttpApp, HttpRouter } from "@effect/platform"
import { appRouter } from "./router.js"
// Create the http server
const handler = HttpRouter.empty.pipe(
HttpRouter.post("/rpc", HttpRpcRouter.toHttpApp(appRouter)),
HttpApp.toWebHandler
)
export default handler