feat: update add cloudflare domain

This commit is contained in:
tim
2025-07-12 10:47:25 +08:00
parent 705e323e79
commit bc065a073a

View File

@@ -69,8 +69,9 @@ public class SecurityConfig {
CorsConfiguration cfg = new CorsConfiguration();
cfg.setAllowedOrigins(List.of(
"http://127.0.0.1", // 前端调试地址
"http://129.204.254.110", // 前端调试地址
"https://www.open-isle.com" // 生产域名
// "http://129.204.254.110", // 前端调试地址
"https://www.open-isle.com", // 生产域名
"689d7858-openisle.cjt807916.workers.dev" // cloudflare 部署域名
));
cfg.setAllowedMethods(List.of("GET","POST","PUT","DELETE","OPTIONS"));
cfg.setAllowedHeaders(List.of("*"));