Skip to content

Commit

Permalink
Merge pull request #2 from PICK-PLE/setting/#1
Browse files Browse the repository at this point in the history
Setting/#1
  • Loading branch information
bo-ram-bo-ram authored Jun 28, 2024
2 parents cf38898 + 75e4b3d commit 553d444
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
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 src/main/java/com/pickple/server/global/config/WebConfig.java
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);
}
}
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.

0 comments on commit 553d444

Please sign in to comment.