Compare commits
16 커밋
feature/ad
...
main
| 작성자 | SHA1 | 날짜 | |
|---|---|---|---|
| 4c837b0ce4 | |||
| 460f941a8b | |||
| 04f3de3890 | |||
| a5f58970a9 | |||
| 89b7936671 | |||
| 3b70d8c33d | |||
| 30f0b28460 | |||
| 8e780413ce | |||
| c0e33e11d7 | |||
| c295da16d1 | |||
| e92b0e15ef | |||
| 1955165985 | |||
| 57b11774eb | |||
| 487832675c | |||
| 3e918baf74 | |||
| acf18221ae |
@ -29,7 +29,7 @@ public class SecurityConfig {
|
||||
private final JwtAuthenticationFilter jwtAuthenticationFilter;
|
||||
private final ObjectMapper objectMapper;
|
||||
|
||||
@Value("${app.cors.allowed-origins:http://localhost:5173,https://guide.gc-si.dev}")
|
||||
@Value("${app.cors.allowed-origins:http://localhost:5173,http://localhost:5175,http://127.0.0.1:5175,https://guide.gc-si.dev,https://wing.gc-si.dev}")
|
||||
private List<String> allowedOrigins;
|
||||
|
||||
@Bean
|
||||
@ -41,7 +41,8 @@ public class SecurityConfig {
|
||||
session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
|
||||
.authorizeHttpRequests(auth -> auth
|
||||
.requestMatchers(
|
||||
"/api/auth/**",
|
||||
"/api/auth/google",
|
||||
"/api/auth/logout",
|
||||
"/api/health",
|
||||
"/actuator/health",
|
||||
"/h2-console/**",
|
||||
|
||||
@ -27,9 +27,15 @@ app:
|
||||
expiration-ms: ${JWT_EXPIRATION:86400000} # 24시간
|
||||
google:
|
||||
client-id: ${GOOGLE_CLIENT_ID:}
|
||||
allowed-email-domain: gcsc.co.kr
|
||||
# Optional: allow multiple audiences (comma-separated) for shared auth across multiple frontends.
|
||||
client-ids: ${GOOGLE_CLIENT_IDS:${GOOGLE_CLIENT_ID:}}
|
||||
allowed-email-domain: ${ALLOWED_EMAIL_DOMAIN:gcsc.co.kr}
|
||||
wing:
|
||||
ais:
|
||||
upstream-base: ${WING_AIS_UPSTREAM_BASE:http://211.208.115.83:8041}
|
||||
timeout-ms: ${WING_AIS_TIMEOUT_MS:20000}
|
||||
cors:
|
||||
allowed-origins: ${CORS_ORIGINS:http://localhost:5173,https://guide.gc-si.dev}
|
||||
allowed-origins: ${CORS_ORIGINS:http://localhost:5173,http://localhost:5175,http://127.0.0.1:5175,https://guide.gc-si.dev,https://wing.gc-si.dev}
|
||||
|
||||
# SpringDoc / Swagger
|
||||
springdoc:
|
||||
|
||||
불러오는 중...
Reference in New Issue
Block a user