From 2725279c9028fd1a8f92ed1e32f1f5ece34ad90e Mon Sep 17 00:00:00 2001 From: Rafa Date: Sat, 1 Feb 2025 10:53:44 +0100 Subject: [PATCH] feat: update CORS configuration to allow all origins and add max age header --- next.config.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index 825a445..2b83507 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,7 +7,7 @@ const nextConfig = { headers: [ { key: "Access-Control-Allow-Origin", - value: "https://f1api.dev", + value: "*", }, { key: "Access-Control-Allow-Methods", @@ -17,6 +17,10 @@ const nextConfig = { key: "Access-Control-Allow-Headers", value: "Content-Type, Authorization", }, + { + key: "Access-Control-Max-Age", + value: "300", + }, ], }, ]