Skip to content

Commit eefa8a5

Browse files
committed
better cors comments
1 parent fbf206a commit eefa8a5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/backend/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const allowedOrigins = [
4444

4545
const options: cors.CorsOptions = {
4646
origin: (origin, callback) => {
47+
// allow requests with no origin like postman or curl requests
4748
if (!origin) return callback(null, true);
4849

4950
if (allowedOrigins.includes(origin)) {

0 commit comments

Comments
 (0)