enable cors

This commit is contained in:
Sergey Yarkov 2021-08-19 20:57:08 +03:00
parent c8d90f84cb
commit c26857f9f3

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')