mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-25 09:10:25 +01:00
@@ -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')
|
|
||||||
},
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user