File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 27
27
},
28
28
"mongodb" : " mongodb://localhost:27017/sintax_backend" ,
29
29
"postFolderPath" : " sintax_test/posts" ,
30
- "userFolderPath" : " sintax_test/user"
30
+ "userFolderPath" : " sintax_test/user" ,
31
+ "origin" : " ORIGIN" ,
32
+ "origni-two" : " ORIGIN_TWO"
31
33
}
Original file line number Diff line number Diff line change 3
3
"port" : " PORT" ,
4
4
"mongodb" : " MONGO_URL" ,
5
5
"postFolderPath" : " sintax/posts" ,
6
- "userFolderPath" : " sintax/user"
6
+ "userFolderPath" : " sintax/user" ,
7
+ "origin" : " ORIGIN" ,
8
+ "origni-two" : " ORIGIN_TWO"
7
9
}
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ app.use(
29
29
contentSecurityPolicy : false ,
30
30
} )
31
31
) ;
32
- var corsOptions = {
33
- origin : "https://sintax.rishupatel.in" ,
32
+ const corsOptions = {
33
+ origin : [ app . get ( "origin" ) , app . get ( "origin-two" ) ] ,
34
34
optionsSuccessStatus : 200 ,
35
35
} ;
36
36
You can’t perform that action at this time.
0 commit comments