diff --git a/config/cors.ts b/config/cors.ts index 98b2c86..e1dadd5 100755 --- a/config/cors.ts +++ b/config/cors.ts @@ -44,7 +44,9 @@ const corsConfig: CorsConfig = { | one of the above values. | */ - origin: 'https://arthurdanjou.fr', + origin: (theme) => { + return theme.includes('arthurdanjou.fr') + }, /* |--------------------------------------------------------------------------