Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2021-07-09 12:00:45 +02:00
parent 68a8876032
commit ac1740d8e5

View File

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