Skip to content

Commit

Permalink
fix : cors 설정 추가 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjKim1229 committed May 12, 2024
1 parent a01e9db commit e00aa1e
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.clubber.ClubberServer.global.config.security;

import java.util.ArrayList;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
@RequiredArgsConstructor
public class CorsConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedMethods("*")
.allowedOriginPatterns("*");
}
}

0 comments on commit e00aa1e

Please sign in to comment.