본문 바로가기

개발 일지

[TIL] 사이드 프로젝트 35일차

 

1. 개발 중 발생한 이슈와 해결

ERROR 3882 --- [nio-8080-exec-7] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" response header. To allow credentials to a set of origins, list them explicitly or consider using "allowedOriginPatterns" instead.] with root cause

 

CORS 설정 .allowCredentials(true)와 .allowedOrigins("*") 동시에 사용할 수 없음

 

해결방법: .allowed Origins("*") -> .allowedOriginPatterns("*")

 

ERROR 4204 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [/chat/room]: would dispatch back to the current handler URL [/chat/room] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause