Skip to content

Commit 4b52a32

Browse files
committed
add options cors support
1 parent f6ccc9e commit 4b52a32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default function slackin ({
6464
})
6565

6666
if (useCors) {
67+
app.options('*', cors())
6768
app.use(cors())
6869
}
6970

0 commit comments

Comments
 (0)