mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-09 03:27:32 +08:00
revert
This commit is contained in:
@@ -71,9 +71,12 @@ public class SecurityConfig {
|
|||||||
CorsConfiguration cfg = new CorsConfiguration();
|
CorsConfiguration cfg = new CorsConfiguration();
|
||||||
cfg.setAllowedOrigins(List.of(
|
cfg.setAllowedOrigins(List.of(
|
||||||
"http://127.0.0.1:8080", // 前端调试地址
|
"http://127.0.0.1:8080", // 前端调试地址
|
||||||
|
"http://127.0.0.1", // 前端调试地址
|
||||||
"http://localhost:8080", // 前端调试地址
|
"http://localhost:8080", // 前端调试地址
|
||||||
|
"http://localhost", // 前端调试地址
|
||||||
// "http://129.204.254.110", // 前端调试地址
|
// "http://129.204.254.110", // 前端调试地址
|
||||||
"https://www.open-isle.com", // 生产域名
|
"https://www.open-isle.com", // 生产域名
|
||||||
|
"https://open-isle.com", // 生产域名
|
||||||
"689d7858-openisle.cjt807916.workers.dev" // cloudflare 部署域名
|
"689d7858-openisle.cjt807916.workers.dev" // cloudflare 部署域名
|
||||||
));
|
));
|
||||||
cfg.setAllowedMethods(List.of("GET","POST","PUT","DELETE","OPTIONS"));
|
cfg.setAllowedMethods(List.of("GET","POST","PUT","DELETE","OPTIONS"));
|
||||||
|
|||||||
Reference in New Issue
Block a user