chenhj
2026-04-20 e4638ff3496db44cce5227204e1c188d667ad984
src/main/java/com/ruoyi/framework/config/ResourcesConfig.java
@@ -54,6 +54,7 @@
    public CorsFilter corsFilter()
    {
        CorsConfiguration config = new CorsConfiguration();
        config.setAllowCredentials(true);
        // 设置访问源地址
        config.addAllowedOriginPattern("*");
        // 设置访问源请求头
@@ -68,4 +69,5 @@
        // 返回新的CorsFilter
        return new CorsFilter(source);
    }
}