Singletons.js 345 B

12345678
  1. let argv = require('minimist')(process.argv.slice(2));
  2. module.exports = {
  3. cwh: {
  4. "Access-Control-Allow-Origin": argv.https === true ? "https://andyxie.cn:4000" : "http://localhost:3000",
  5. "Access-Control-Allow-Credentials": true,
  6. "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Credentials"
  7. }
  8. }