有道无术,术尚可求,有术无道,止于术。 本系列Spring Boot 版本 3.1.0 本系列Spring Security 版本 6.1.0 源码地址:https://gitee.com/pearl-organization/study-spring-security-demo 文章目录 1. 演示跨域 2. CORS 3. Spring Security 中 CORS 配置 4. CorsFilter 1. 演示跨域 新建一个测试页面,使用AJAX发起跨域的远程请求: <!DOCTYPE html> <html> <head