Merge branch 'dev' into main
This commit is contained in:
@@ -18,10 +18,12 @@ public class CorsConfig implements WebMvcConfigurer {
|
|||||||
public void addCorsMappings(CorsRegistry registry) {
|
public void addCorsMappings(CorsRegistry registry) {
|
||||||
registry.addMapping("/api/**")
|
registry.addMapping("/api/**")
|
||||||
.allowedOrigins(
|
.allowedOrigins(
|
||||||
"http://localhost:5173", // Vue 개발 서버
|
"http://localhost:5173", // Vue 개발 서버
|
||||||
"capacitor://localhost", // Capacitor (iOS scheme)
|
"capacitor://localhost", // Capacitor (iOS scheme)
|
||||||
"https://localhost", // Capacitor Android (기본 https scheme)
|
"https://localhost", // Capacitor Android (기본 https scheme)
|
||||||
"http://localhost" // Capacitor Android (http scheme)
|
"http://localhost", // Capacitor Android (http scheme)
|
||||||
|
"https://app.sblog.kr", // 운영 웹 (안전망)
|
||||||
|
"http://app.sblog.kr"
|
||||||
)
|
)
|
||||||
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
|
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
|
||||||
.allowedHeaders("*")
|
.allowedHeaders("*")
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ server:
|
|||||||
port: 8080
|
port: 8080
|
||||||
servlet:
|
servlet:
|
||||||
context-path: /
|
context-path: /
|
||||||
|
# Nginx(HTTPS) 리버스 프록시 뒤 — X-Forwarded-* 를 신뢰해 원래 스킴/호스트 인식 (CORS·리다이렉트 정확)
|
||||||
|
forward-headers-strategy: framework
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
# 로컬 개발 시 .env(properties 형식, git 미추적)에서 환경변수 로드. 없으면 OS/컨테이너 환경변수 사용.
|
# 로컬 개발 시 .env(properties 형식, git 미추적)에서 환경변수 로드. 없으면 OS/컨테이너 환경변수 사용.
|
||||||
|
|||||||
Reference in New Issue
Block a user