Skip to content

Commit 0a6e3fc

Browse files
committed
🔧 fix: strictly check protocol
1 parent 4d15d8a commit 0a6e3fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ export const cors = (config?: CORSConfig) => {
345345
handleMethod(set, request.method)
346346

347347
if (allowedHeaders === true || exposeHeaders === true) {
348+
// @ts-ignore
348349
const headers = processHeaders(request.headers)
349350

350351
if (allowedHeaders === true)

0 commit comments

Comments
 (0)