Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -18,10 +18,12 @@ public class CorsConfig implements WebMvcConfigurer {
|
||||
public void addCorsMappings(CorsRegistry registry) {
|
||||
registry.addMapping("/api/**")
|
||||
.allowedOrigins(
|
||||
"http://localhost:5173", // Vue 개발 서버
|
||||
"capacitor://localhost", // Capacitor (iOS scheme)
|
||||
"https://localhost", // Capacitor Android (기본 https scheme)
|
||||
"http://localhost" // Capacitor Android (http scheme)
|
||||
"http://localhost:5173", // Vue 개발 서버
|
||||
"capacitor://localhost", // Capacitor (iOS scheme)
|
||||
"https://localhost", // Capacitor Android (기본 https scheme)
|
||||
"http://localhost", // Capacitor Android (http scheme)
|
||||
"https://app.sblog.kr", // 운영 웹 (안전망)
|
||||
"http://app.sblog.kr"
|
||||
)
|
||||
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
|
||||
.allowedHeaders("*")
|
||||
|
||||
Reference in New Issue
Block a user