Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- CompletableFuture
- list
- java list
- DeferredImportSelector
- spring
- java lambda
- Spring Boot
- kotlin
- elasticsearch
- jpa
- Sleuth
- java.util.list
- traceId
- micrometer tracing
- @FunctionalInterface
- map
- awssecretsmanagerpropertysources
- EnableWebMvc
- asyncconfigurer
- grpc
- asynccustomautoconfiguration
- HashMap
- wire type
- spring MVC
- aws secretmanager
- Spring JPA
- traceasynccustomautoconfiguration
- SpringMVC
- ResponseBody
- java
Archives
- Today
- Total
목록spring cors (1)
du.study기록공간

신규 기능으로 엑셀 다운로드 기능을 개발하는 도중, CORS문제가 났던 문제를 기록해보려 합니다. 먼저 간략하게 구성도를 그려보면 브라우저(A.com)에서 B.com 으로 호출을 하고 B.com에선 nginx가 프록시 역할로 Excel 추출 서버로 토스해주는 구조로 서버를 구성했습니다. 서버들은 스프링,Undertow를 통해 구동시키고 있습니다. 첫번째 의문. 어째서 브라우저에서 POST로 호출을 했는데, OPTIONS로 변경이 되었는가. 요건 리서치를 통해서 빠르게 해결할 수 있었습니다. CORS요청의 경우, 브라우저는 요청을 preflighted request로 변경하여 서버로 보내게 되는데, 먼저 Method를 OPTIONS로 호출을 하여 먼저 서버의 승인을 받고난 후, 먼저 요청한 Method로 ..
스프링
2020. 2. 10. 23:38