Remove CORS

This commit is contained in:
Tobe O 2018-10-02 13:11:10 -04:00
parent 350e538b2b
commit 59e904dddd
2 changed files with 0 additions and 5 deletions

View file

@ -1,7 +1,6 @@
/// This app's route configuration. /// This app's route configuration.
library angel.src.routes; library angel.src.routes;
import 'package:angel_cors/angel_cors.dart';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel_framework/angel_framework.dart';
import 'package:angel_static/angel_static.dart'; import 'package:angel_static/angel_static.dart';
import 'package:file/file.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 /// * https://github.com/angel-dart/angel/wiki/Requests-&-Responses
AngelConfigurer configureServer(FileSystem fileSystem) { AngelConfigurer configureServer(FileSystem fileSystem) {
return (Angel app) async { return (Angel app) async {
// Enable CORS
app.use(cors());
// Typically, you want to mount controllers first, after any global middleware. // Typically, you want to mount controllers first, after any global middleware.
await app.configure(controllers.configureServer); await app.configure(controllers.configureServer);

View file

@ -7,7 +7,6 @@ homepage: https://github.com/angel-dart/angel
dependencies: dependencies:
angel_auth: ^2.0.0-alpha # Supports stateless authentication via JWT 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_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_framework: ^2.0.0-alpha # The core server library.
#angel_jael: ^1.0.0 # Server-side templating engine #angel_jael: ^1.0.0 # Server-side templating engine
angel_production: ^1.0.0-alpha angel_production: ^1.0.0-alpha