mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-21 14:30:59 +08:00
feat: open remote debug
This commit is contained in:
@@ -9,11 +9,11 @@ import { checkToken, clearToken } from './utils/auth'
|
||||
import { initTheme } from './utils/theme'
|
||||
|
||||
// Configurable API domain and port
|
||||
export const API_DOMAIN = 'http://127.0.0.1'
|
||||
export const API_PORT = 8081
|
||||
// export const API_DOMAIN = 'http://127.0.0.1'
|
||||
// export const API_PORT = 8081
|
||||
|
||||
// export const API_DOMAIN = 'http://47.82.99.208'
|
||||
// export const API_PORT = 8080
|
||||
export const API_DOMAIN = 'http://47.82.99.208'
|
||||
export const API_PORT = 8080
|
||||
|
||||
// export const API_BASE_URL = API_PORT ? `${API_DOMAIN}:${API_PORT}` : API_DOMAIN
|
||||
export const API_BASE_URL = "";
|
||||
|
||||
@@ -70,14 +70,14 @@ public class SecurityConfig {
|
||||
public CorsConfigurationSource corsConfigurationSource() {
|
||||
CorsConfiguration cfg = new CorsConfiguration();
|
||||
cfg.setAllowedOrigins(List.of(
|
||||
"http://127.0.0.1:8080", // 前端调试地址
|
||||
"http://127.0.0.1", // 前端调试地址
|
||||
"http://localhost:8080", // 前端调试地址
|
||||
"http://localhost", // 前端调试地址
|
||||
// "http://129.204.254.110", // 前端调试地址
|
||||
"https://www.open-isle.com", // 生产域名
|
||||
"https://open-isle.com", // 生产域名
|
||||
"689d7858-openisle.cjt807916.workers.dev" // cloudflare 部署域名
|
||||
"http://127.0.0.1:8080",
|
||||
"http://127.0.0.1",
|
||||
"http://localhost:8080",
|
||||
"http://localhost",
|
||||
"http://30.211.97.200:8080",
|
||||
"http://30.211.97.200",
|
||||
"https://www.open-isle.com",
|
||||
"https://open-isle.com"
|
||||
));
|
||||
cfg.setAllowedMethods(List.of("GET","POST","PUT","DELETE","OPTIONS"));
|
||||
cfg.setAllowedHeaders(List.of("*"));
|
||||
|
||||
Reference in New Issue
Block a user