Skip to content
Snippets Groups Projects

Feat/auth : 사용자 토큰 발행 및 참여 프로젝트 반환

Merged 천 진강 requested to merge feat/auth into dev
12 files
+ 349
0
Compare changes
  • Side-by-side
  • Inline

Files

 
package com.aolda.itda.config;
 
 
import org.springframework.context.annotation.Configuration;
 
import org.springframework.web.servlet.config.annotation.CorsRegistry;
 
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 
 
@Configuration
 
public class WebConfig implements WebMvcConfigurer {
 
@Override
 
public void addCorsMappings(CorsRegistry registry) { // 스프링단에서 cors 설정
 
registry.addMapping("/**")
 
.allowedOriginPatterns("*")
 
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH", "FETCH")
 
.allowedHeaders("*")
 
.allowCredentials(true)
 
.exposedHeaders("Authorization", "X-Refresh-Token", "Access-Control-Allow-Origin")
 
;
 
}
 
}
Loading