diff --git a/config/middlewares.ts b/config/middlewares.ts index fd9c763..9621fd6 100644 --- a/config/middlewares.ts +++ b/config/middlewares.ts @@ -2,15 +2,17 @@ export default ({ env }) => ([ 'strapi::errors', 'strapi::security', { - name: 'strapi::cors', + name: 'strapi::poweredBy', config: { - origin: env.array('CORS_ORIGIN') + poweredBy: 'Felles datakatalog ' } }, { - name: 'strapi::poweredBy', + name: 'strapi::cors', config: { - poweredBy: 'Felles datakatalog ' + enabled: true, + headers: '*', + origin: env.array('CORS_ORIGIN') } }, 'strapi::logger',