From 51cada224b7f32c0c4e36f721f0a3e7f6ac4747b Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Fri, 15 Apr 2022 18:55:47 +0200 Subject: [PATCH] fix rewrite headres --- next.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index fa5bc84e10..fd93748c8c 100644 --- a/next.config.js +++ b/next.config.js @@ -13,8 +13,8 @@ module.exports = withTM({ async headers() { return [ { - // matching all API routes - source: "/api/:path*", + // matching all routes, because we redirect to API in rewrites + source: "/:path*", headers: [ { key: "Access-Control-Allow-Credentials", value: "true" }, { key: "Access-Control-Allow-Origin", value: "*" },