Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2021-07-05 12:58:31 +02:00
parent 7707b426aa
commit d4d659990c

View File

@@ -44,7 +44,13 @@ const corsConfig: CorsConfig = {
| one of the above values.
|
*/
origin: '*',
origin: (origin) => {
if (process.env.NODE_ENV === 'development') {
return true;
}
return origin.includes('arthurdanjou.fr')
},
/*
|--------------------------------------------------------------------------