728x90
Proxy
-
Svelte-kit 프록시 처리공부 2023. 7. 25. 01:24
https://binsblog.tistory.com/entry/Svelte-Get-Post Svelte Get, Post fetch를 사용하여 get 하는 방법 기본 틀 {#each check as c} {c.title} {c.content} {c.author} {/each} 위를 응용하여 js 파일로 만들어 두어 모듈화 하였다. getAPI.js /** * @param {RequestInfo | URL} url */ async function getAPI(ur binsblog.tistory.com 위 처럼 get을 하였을 때는 작동이 되나, post를 하였을 때 스프링 부트와 API 통신을 하면서 CORS에러가 생기는 경우가 있었다. import org.springframework.context.ann..