后端服务开启跨域请求设置(对于前端来说基本是透明的),我这里以SpringSecurity为例 在Springboot项目中创建CorsConfig.java文件 package com.test.testmanagement.config.springsecurity; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframe...