/* * @Author: cclu 1106109051@qq.com * @Date: 2025-04-08 16:46:12 * @LastEditors: cclu 1106109051@qq.com * @LastEditTime: 2025-04-16 15:46:19 * @FilePath: \AHMemberManager\config\proxy.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ const proxy = { // '/auth': { // // target: 'http://home.robot-z.cn:7001', // target: 'http://10.104.1.159:8072', // changeOrigin: true, // secure: false, // pathRewrite: { '^/auth': '' }, // onProxyRes: function (proxyRes) { // proxyRes.headers['Access-Control-Allow-Origin'] = '*'; // proxyRes.headers['Access-Control-Allow-Methods'] = 'GET,PUT,POST,DELETE,OPTIONS'; // proxyRes.headers['Access-Control-Allow-Headers'] = 'Content-Type, Authorization'; // proxyRes.headers['Access-Control-Allow-Credentials'] = 'true'; // } // } } export default proxy;