Skip to content

Commit c9f93f2

Browse files
Cors error message adding origin
1 parent b1def37 commit c9f93f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var corsOptions = {
3737
if (whitelist.indexOf(origin) !== -1) {
3838
callback(null, true)
3939
} else {
40-
callback(new Error('Not allowed by CORS'))
40+
callback(new Error(`Origin '${origin}' not allowed by CORS`))
4141
}
4242
},
4343
optionsSuccessStatus: 200,

0 commit comments

Comments
 (0)