Skip to content

Commit

Permalink
Merge pull request #151 from team-offonoff/config
Browse files Browse the repository at this point in the history
feat: 프론트 도메인용 cors 추가한다
  • Loading branch information
melonturtle authored Jan 31, 2024
2 parents 08107b3 + f165d23 commit 4718dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/life/offonoff/ab/config/WebConfig.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package life.offonoff.ab.config;

import life.offonoff.ab.application.service.common.LengthInfo;
import life.offonoff.ab.web.common.aspect.auth.AuthorizedArgumentResolver;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
Expand All @@ -24,6 +23,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173")
.allowedOrigins("https://offonoff.me")
.allowCredentials(true)
// OPTION 요청은 preflight
.allowedMethods("GET", "POST", "OPTION");
Expand Down

0 comments on commit 4718dca

Please sign in to comment.