Browse Source

refactor(vite): 移除Origin-Agent-Cluster头部配置

该配置已被注释掉,因为当前项目不再需要此安全头部设置
lsc 1 day ago
parent
commit
5d27489dd1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      vite.config.ts

+ 3 - 3
vite.config.ts

@@ -14,9 +14,9 @@ export default defineConfig({
   server: {
   server: {
     host: '0.0.0.0',
     host: '0.0.0.0',
     port: 5173,
     port: 5173,
-    headers: {
-      'Origin-Agent-Cluster': '?0',
-    },
+    // headers: {
+    //   'Origin-Agent-Cluster': '?0',
+    // },
     proxy: {
     proxy: {
       '/api': {
       '/api': {
         target: 'https://server.pptist.cn',
         target: 'https://server.pptist.cn',