Skip to content

Commit

Permalink
Backend: Allow all CORS origins
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsinghshubham777 committed Sep 30, 2024
1 parent 3e16871 commit 62efec1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions backend/routes/_middleware.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ import '../src/utils/extensions.dart';
Handler middleware(Handler handler) {
return handler
.use(requestLogger())
.use(
fromShelfMiddleware(
corsHeaders(
headers: {
ACCESS_CONTROL_ALLOW_ORIGIN: Platform.environment['CORS_URL']!,
},
),
),
)
.use(fromShelfMiddleware(corsHeaders()))
.use(Middlewares.userRepository)
.use(Middlewares.db)
.use(Middlewares.credentialManager);
Expand Down

0 comments on commit 62efec1

Please sign in to comment.