CorsConfig.production constructor

CorsConfig.production()

Default production CORS configuration.

Implementation

factory CorsConfig.production() {
  return const CorsConfig(
    allowedOrigins: [], // Must be configured per environment
    allowedMethods: ['GET', 'POST', 'PUT', 'DELETE'],
    allowedHeaders: ['Content-Type', 'Authorization'],
    credentials: true,
  );
}