From 59e904ddddb2df447819257d920f410ecc2bd2c0 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Tue, 2 Oct 2018 13:11:10 -0400 Subject: [PATCH] Remove CORS --- lib/src/routes/routes.dart | 4 ---- pubspec.yaml | 1 - 2 files changed, 5 deletions(-) diff --git a/lib/src/routes/routes.dart b/lib/src/routes/routes.dart index be32ed5..bd6baf3 100644 --- a/lib/src/routes/routes.dart +++ b/lib/src/routes/routes.dart @@ -1,7 +1,6 @@ /// This app's route configuration. library angel.src.routes; -import 'package:angel_cors/angel_cors.dart'; import 'package:angel_framework/angel_framework.dart'; import 'package:angel_static/angel_static.dart'; import 'package:file/file.dart'; @@ -14,9 +13,6 @@ import 'controllers/controllers.dart' as controllers; /// * https://github.com/angel-dart/angel/wiki/Requests-&-Responses AngelConfigurer configureServer(FileSystem fileSystem) { return (Angel app) async { - // Enable CORS - app.use(cors()); - // Typically, you want to mount controllers first, after any global middleware. await app.configure(controllers.configureServer); diff --git a/pubspec.yaml b/pubspec.yaml index ef26cd2..598e587 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,7 +7,6 @@ homepage: https://github.com/angel-dart/angel dependencies: angel_auth: ^2.0.0-alpha # Supports stateless authentication via JWT angel_configuration: ^2.0.0 # Loads application configuration, along with support for .env files. - #angel_cors: ^1.0.0 # CORS support angel_framework: ^2.0.0-alpha # The core server library. #angel_jael: ^1.0.0 # Server-side templating engine angel_production: ^1.0.0-alpha