浏览代码

feat:评分入口变更

Joburgess 4 年之前
父节点
当前提交
4bef35e63c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      mec-teacher/src/main/java/com/ym/mec/teacher/config/WebSocketConfig.java

+ 2 - 1
mec-teacher/src/main/java/com/ym/mec/teacher/config/WebSocketConfig.java

@@ -26,7 +26,8 @@ public class WebSocketConfig implements WebSocketConfigurer {
     @Override
     public void registerWebSocketHandlers(WebSocketHandlerRegistry webSocketHandlerRegistry) {
         webSocketHandlerRegistry.addHandler(webSocketHandler, "/audioEvaluate")
-                .addInterceptors(webSocketHandshakeInterceptor);
+                .addInterceptors(webSocketHandshakeInterceptor)
+                .setAllowedOrigins("*");
     }
 
     @Bean