worked on authController

This commit is contained in:
Sockenklaus
2021-10-20 01:21:44 +02:00
parent 4d7f2efedb
commit 5173e8d4c9
5 changed files with 111 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ const corsConfig: CorsConfig = {
| you can define a function to enable/disable it on per request basis as well.
|
*/
enabled: false,
enabled: true,
// You can also use a function that return true or false.
// enabled: (request) => request.url().startsWith('/api')
@@ -44,7 +44,7 @@ const corsConfig: CorsConfig = {
| one of the above values.
|
*/
origin: true,
origin: 'http://localhost:3000',
/*
|--------------------------------------------------------------------------