diff options
Diffstat (limited to 'config/cors.ts')
-rw-r--r-- | config/cors.ts | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/config/cors.ts b/config/cors.ts index dc0e3f6..911326f 100644 --- a/config/cors.ts +++ b/config/cors.ts | |||
@@ -1,13 +1,6 @@ | |||
1 | /** | 1 | import { defineConfig } from '@adonisjs/cors' |
2 | * Config source: https://git.io/JfefC | ||
3 | * | ||
4 | * Feel free to let us know via PR, if you find something broken in this config | ||
5 | * file. | ||
6 | */ | ||
7 | 2 | ||
8 | import { CorsConfig } from '@ioc:Adonis/Core/Cors'; | 3 | const corsConfig = defineConfig({ |
9 | |||
10 | const corsConfig: CorsConfig = { | ||
11 | /* | 4 | /* |
12 | |-------------------------------------------------------------------------- | 5 | |-------------------------------------------------------------------------- |
13 | | Enabled | 6 | | Enabled |
@@ -129,6 +122,6 @@ const corsConfig: CorsConfig = { | |||
129 | | | 122 | | |
130 | */ | 123 | */ |
131 | maxAge: 90, | 124 | maxAge: 90, |
132 | }; | 125 | }) |
133 | 126 | ||
134 | export default corsConfig; | 127 | export default corsConfig |