Skip to main content
Module

x/alosaur/examples/cors/app.ts

Alosaur - Deno web framework with many decorators
Go to Latest
File
import { HomeArea } from "./areas/home/home.area.ts";import { App, CorsBuilder } from '../../src/mod.ts';
const app = new App({ areas: [HomeArea]});
app.useCors( new CorsBuilder() .WithOrigins('*') .AllowAnyMethod() .AllowAnyHeaders());
app.listen();