본문 바로가기
dev/java

[Java] spring boot - cors 에러

by seohan1010 2024. 5. 29.

https://diary-developer.tistory.com/31

 

[Spring Boot] CORS Filter 설정하기 (CORS 오류 해결방법) - Java

웹 개발을 하다 보면 CORS 오류는 많이 볼 수밖에 없다. 최근 Spring Boot로 개발을 진행하면서 발생했던 CORS 오류를 어떻게 해결했는지에 대한 과정이다. CORS (Cross Origin Resource Sharing) Policy 직역하자

diary-developer.tistory.com

 

 

https://www.baeldung.com/spring-cors

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

참고자료

 

 

 

https://medium.com/@byeongsoon94/spring-boot-cors-%EC%9D%B4%EC%8A%88%ED%95%B4%EA%B2%B0%ED%95%98%EA%B8%B0-webmvcconfigurer%EB%A5%BC-%ED%86%B5%ED%95%9C-%EC%84%A4%EC%A0%95-635933248b91

 

[Spring Boot] CORS 이슈해결하기(WebMVCConfigurer를 통한 설정)

팀 프로젝트 진행 시 발생했던 CORS 이슈에 대하여 개념과 해결 방법을 알아본다.

medium.com

 

 

 

 

https://stackoverflow.com/questions/35091524/spring-cors-no-access-control-allow-origin-header-is-present

 

Spring CORS No 'Access-Control-Allow-Origin' header is present

I am getting the following problem after porting web.xml to java config No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63342' is therefore not

stackoverflow.com

 

 

 

 


https://docs.spring.io/spring-framework/reference/web/webmvc-cors.html

 

CORS :: Spring Framework

Spring MVC lets you handle CORS (Cross-Origin Resource Sharing). This section describes how to do so.

docs.spring.io

 

 

 

 


https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

 

Cross-Origin Resource Sharing (CORS) - HTTP | MDN

Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources. CORS also relies on a mechanism by which

developer.mozilla.org

 

 

'dev > java' 카테고리의 다른 글

[Java] 비트 연산자  (0) 2024.05.18
[java] 참조변수 - 1  (0) 2024.05.18