From 39dd634708a8813b9050d24364a55c3ef282bb67 Mon Sep 17 00:00:00 2001 From: Didier Krux Date: Wed, 9 Aug 2023 23:25:00 +0100 Subject: [PATCH] revert --- next.config.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/next.config.js b/next.config.js index e876f2df7..2165a6e01 100644 --- a/next.config.js +++ b/next.config.js @@ -96,20 +96,6 @@ const config = { }, async headers() { return [ - { - // mathching all API routes - source: '/api/:path*', - headers: [ - { key: 'Access-Control-Allow-Credentials', value: 'true' }, - { key: 'Access-Control-Allow-Origin', value: '*' }, - { key: 'Access-Control-Allow-Methods', value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT' }, - { - key: 'Access-Control-Allow-Headers', - value: - 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version', - }, - ], - }, { source: '/:path*', headers,