Skip to content

Commit

Permalink
Merge pull request #58 from Route-Box/feature/#55
Browse files Browse the repository at this point in the history
feat: #55 allowed origins 추가
  • Loading branch information
suyeoniii authored Aug 21, 2024
2 parents 3ed6e76 + afc39dc commit 5fee965
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,14 @@ class SecurityConfig {
@Bean
fun corsConfigurationSource(): CorsConfigurationSource {
val corsConfig = CorsConfiguration()
corsConfig.allowedOrigins = listOf("https://api-dev.myroutebox.com", "https://*.myroutebox.com")
corsConfig.allowedOrigins = listOf(
"https://api-dev.myroutebox.com",
"https://*.myroutebox.com",
"https://myroutebox.com",
"http://localhost:8080",
// For web local development
"http://localhost:5173",
)
corsConfig.allowedMethods = listOf(
HttpMethod.GET.name(),
HttpMethod.POST.name(),
Expand Down

0 comments on commit 5fee965

Please sign in to comment.