-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Setting/#1
- Loading branch information
Showing
11 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## 📣 Related Issue | ||
<!-- 관련 이슈를 적어주세요. --> | ||
- close # | ||
|
||
## 📝 Summary | ||
<!-- 해당 PR의 주요 작업 내용을 적어주세요 --> | ||
|
||
|
||
## 🙏 Question & PR point | ||
<!-- PR과정에서 다른 팀원이 알아야할 사항이나 궁금증을 적어주세요 --> | ||
|
||
|
||
## 📬 Postman | ||
<!-- postman 스크린샷을 첨부해주세요 --> |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
17 changes: 17 additions & 0 deletions
17
src/main/java/com/pickple/server/global/config/WebConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.pickple.server.global.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) { | ||
registry.addMapping("/**") | ||
.allowedOrigins("*") | ||
.allowedMethods("GET", "POST", "PUT", "DELETE") | ||
.allowCredentials(true) | ||
.maxAge(3000); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/pickple/server/global/exception/GlobalExceptionHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.pickple.server.global.exception; | ||
|
||
public class GlobalExceptionHandler { | ||
} |
Empty file.
Empty file.