import { defineConfig } from '@adonisjs/cors';
import env from '../env.js';
const corsConfig = defineConfig({
    enabled: true,
    origin: [env.get('APP_URL')],
    methods: ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'PATCH'],
    headers: true,
    exposeHeaders: [],
    credentials: true,
    maxAge: 90,
});
export default corsConfig;
//# sourceMappingURL=cors.js.map