mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-11 18:29:15 +03:00
enable cors
This commit is contained in:
parent
c8d90f84cb
commit
c26857f9f3
@ -20,7 +20,7 @@ const corsConfig: CorsConfig = {
|
|||||||
| you can define a function to enable/disable it on per request basis as well.
|
| 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.
|
// You can also use a function that return true or false.
|
||||||
// enabled: (request) => request.url().startsWith('/api')
|
// enabled: (request) => request.url().startsWith('/api')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user