Skip to main content
Module

x/http_fns/cors.ts>cors

A bunch of functions for building HTTP servers
Go to Latest
function cors
import { cors } from "https://deno.land/x/http_fns@v0.0.27/cors.ts";

Create a ResponseInterceptor that adds the appropriate CORS headers when required.

Parameters

optional
opts: CorsOptions

configuration options