www/src/app/configs/cors.config.ts

13 lines
302 B
TypeScript
Raw Normal View History

2022-11-15 03:59:03 +00:00
import {env, HTTPMethod} from '@extollo/lib'
export default {
enable: env('ENABLE_CORS', false),
allow: {
origins: [
'https://garrettmills.dev',
'https://glmdev.tech',
] as string[],
methods: ['post', 'get', 'options'] as HTTPMethod[],
},
}