Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
proxy-manager-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aolda
proxy-manager-backend
Merge requests
!2
Feat/auth : 사용자 토큰 발행 및 참여 프로젝트 반환
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Feat/auth : 사용자 토큰 발행 및 참여 프로젝트 반환
feat/auth
into
dev
Overview
0
Commits
4
Pipelines
0
Changes
12
Merged
천 진강
requested to merge
feat/auth
into
dev
4 months ago
Overview
0
Commits
4
Pipelines
0
Changes
12
변경 사항
사용자 토큰 발행
토큰 발행시 참여 프로젝트 이름, id 반환
PR 유형
어떤 변경 사항이 있나요?
새로운 기능 추가
버그 수정
코드에 영향을 주지 않는 변경사항(오타 수정, 탭 사이즈 변경, 변수명 변경)
코드 리팩토링
주석 추가 및 수정
문서 수정
테스트 추가, 테스트 리팩토링
빌드 부분 혹은 패키지 매니저 수정
파일 , 폴더명 , 파일 경로 수정
파일 혹은 폴더 삭제
반영 브랜치
feat/user-> dev
기타
추후 어드민 여부 로직 작성 필요
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
9b580757
4 commits,
4 months ago
12 files
+
349
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
src/main/java/com/aolda/itda/config/WebConfig.java
0 → 100644
+
19
−
0
View file @ 9b580757
Edit in single-file editor
Open in Web IDE
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