Skip to content

Commit

Permalink
chore: add the cors origins
Browse files Browse the repository at this point in the history
  • Loading branch information
JIUNG9 committed Jan 10, 2024
1 parent 64bce64 commit 07314ec
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bit.lotte.flower.user.common;
package com.bit.lotte.flower.user.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
Expand All @@ -10,7 +10,11 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "http://localhost:3001", "http://localhost:3002")
.allowedOrigins("http://localhost:3000", "http://localhost:3001", "http://localhost:3002",
"https://blooming.blooms.mall.stockey.kr",
"https://blooming.blooms.store.stockey.kr",
"https://blooming.blooms.admin.stockey.kr"
)
.allowedMethods("*")
.allowedHeaders("*")
.exposedHeaders("*")
Expand Down

0 comments on commit 07314ec

Please sign in to comment.