Skip to content

Commit 9af3302

Browse files
committed
cors error
1 parent d8260f1 commit 9af3302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http-backend/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const app = express();
77
app.use(cors({
88
origin: '*',
99
methods: ['GET', 'POST'],
10-
allowedHeaders: ['Content-Type']
10+
allowedHeaders: ['Content-Type', 'Authorization']
1111
}));
1212

1313
app.use(express.json())

0 commit comments

Comments
 (0)