cors.config.ts 259 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
const options = {
  allowedHeaders: ['Origin', 'X-Requested-With', 'Content-Type', 'Accept', 'X-Access-Token'],
  credentials: true,
  methods: 'GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE',
  origin: true,
  preflightContinue: false
};

module.exports = options;