Skip to content

Commit a2ca940

Browse files
committed
fix: remove cors for other methods
1 parent 960ce82 commit a2ca940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/api/payments/paymentId/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { runMiddleware } from 'utils/index'
77
import Cors from 'cors'
88

99
const cors = Cors({
10-
methods: ['GET', 'HEAD', 'POST']
10+
methods: ['POST']
1111
})
1212

1313
export default async (req: any, res: any): Promise<void> => {

0 commit comments

Comments
 (0)