Skip to content

Commit

Permalink
fix: cors settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreiffers committed Feb 21, 2023
1 parent 45ba599 commit 220cf0a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config/middlewares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <data.norge.no>'
}
},
{
name: 'strapi::poweredBy',
name: 'strapi::cors',
config: {
poweredBy: 'Felles datakatalog <data.norge.no>'
enabled: true,
headers: '*',
origin: env.array('CORS_ORIGIN')
}
},
'strapi::logger',
Expand Down

0 comments on commit 220cf0a

Please sign in to comment.