This commit is contained in:
Troughy
2026-05-19 22:15:11 +02:00
commit 2c7f61d62c
101 changed files with 26568 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import type { Core } from '@strapi/strapi';
const config: Core.Config.Middlewares = [
'strapi::logger',
'strapi::errors',
'strapi::security',
{
name: 'strapi::cors',
config: {
origin: [
'http://localhost:5173',
'http://127.0.0.1:5173',
'http://localhost:5174',
'http://127.0.0.1:5174',
],
headers: ['Content-Type', 'Authorization', 'Origin', 'Accept'],
},
},
'strapi::poweredBy',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];
export default config;