From 00e784dd53950b501a0690ba9521b32104c0d5e5 Mon Sep 17 00:00:00 2001 From: Guryash Date: Tue, 10 Dec 2024 23:21:34 +1300 Subject: [PATCH] fix: revert strapi settings --- strapi/config/middlewares.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/strapi/config/middlewares.js b/strapi/config/middlewares.js index ee682a75..e0e5838e 100644 --- a/strapi/config/middlewares.js +++ b/strapi/config/middlewares.js @@ -1,23 +1,4 @@ module.exports = [ - { - name: "strapi::cors", - config: { - origin: [ - "http://localhost:5173", - "http://localhost:3000", - "http://localhost:1337", - "http://localhost:3567", - "https://wdcc-auis-staging.fly.dev/" - ], // Your frontend domain - headers: [ - "Content-Type", - "Authorization", - "st-auth-mode", - "X-Frame-Options", - "rid", - ], // Add st-auth-mode - }, - }, "strapi::logger", "strapi::errors", { @@ -34,6 +15,7 @@ module.exports = [ }, }, }, + "strapi::cors", "strapi::poweredBy", "strapi::query", "strapi::body",