@@ -17,7 +17,7 @@ public class WebAppConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
- registry.addMapping("/**").allowCredentials(true).allowedHeaders("*").allowedOrigins("*").allowedMethods("*");
+ registry.addMapping("/**").allowCredentials(false).allowedHeaders("*").allowedOrigins("*").allowedMethods("*");
}
@@ -14,7 +14,6 @@ import org.springframework.web.bind.annotation.*;
/**
*房间管理
*/
-@CrossOrigin
@RestController
public class RoomController extends BaseController{
@@ -16,7 +16,6 @@ import javax.annotation.Resource;
* 场景数据
public class SceneController extends BaseController {
* @author
* @since 2022-09-27
@RequestMapping("/tencentYun")
public class TencentYunController {