Browse Source

fix(config): 添加新的不需要凭证的API域名

在请求拦截器中添加ccrb.s3.cn-northwest-1.amazonaws.com.cn到不需要携带凭证的域名列表
lsc 1 day ago
parent
commit
b735f88de6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/services/config.ts
  2. 1 1
      src/views/Student/index.vue

+ 1 - 1
src/services/config.ts

@@ -16,7 +16,7 @@ instance.interceptors.request.use(
     // 确保每个请求都带上cookie
     // 确保每个请求都带上cookie
     config.withCredentials = true
     config.withCredentials = true
 
 
-    if (url.includes('https://gpt4.cocorobo.cn') || url.includes('https://appapi.cocorobo.cn')) {
+    if (url.includes('https://gpt4.cocorobo.cn') || url.includes('https://appapi.cocorobo.cn') || url.includes('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn')) {
       config.withCredentials = false 
       config.withCredentials = false 
     }
     }
 
 

+ 1 - 1
src/views/Student/index.vue

@@ -1532,7 +1532,7 @@ const processIframeLinks = async () => {
                   console.log(`处理幻灯片 ${slideIndex + 1} 中的iframe链接:`, iframeSrc)
                   console.log(`处理幻灯片 ${slideIndex + 1} 中的iframe链接:`, iframeSrc)
                   return {
                   return {
                     ...element,
                     ...element,
-                    isHTML: true,
+                    isHTML: true,  
                     url: html
                     url: html
                   }
                   }
                 }
                 }