Skip to content

Commit 5bc883d

Browse files
committed
chore: update default CORS origin
- Updated default port - To match local dev setup
1 parent 07ccc68 commit 5bc883d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/api/v1/_middleware.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Handler middleware(Handler handler) {
2424
// This default allows credentials, so it cannot be '*'.
2525
// Adjust 'http://localhost:3000' if your local Flutter web dev server
2626
// typically runs on a different port.
27-
effectiveOrigin = 'http://localhost:3000';
27+
effectiveOrigin = 'http://localhost:45535';
2828
print('------------------------------------------------------------------');
2929
print('WARNING: CORS_ALLOWED_ORIGIN environment variable is NOT SET.');
3030
print(

0 commit comments

Comments
 (0)