"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cors_1 = require("@gem-mine/cors");
const config_1 = require("../config");
const { CROSS_ORIGIN } = config_1.default;
// 跨域处理中间件
// 更多配置请查看：https://github.com/gem-mine/cors
exports.default = cors_1.default({
    origins: CROSS_ORIGIN
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taWRkbGV3YXJlL2NvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBaUM7QUFDakMsc0NBQThCO0FBQzlCLE1BQU0sRUFBRSxZQUFZLEVBQUUsR0FBRyxnQkFBTSxDQUFBO0FBRS9CLFVBQVU7QUFDViwyQ0FBMkM7QUFDM0Msa0JBQWUsY0FBSSxDQUFDO0lBQ2xCLE9BQU8sRUFBRSxZQUFZO0NBQ3RCLENBQUMsQ0FBQSJ9