test cors

Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2021-07-05 16:00:59 +02:00
parent b1e1863468
commit f158ea2cb2

View File

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