Framework/Spring Boot
Swagger 에러
잔망루피
2023. 2. 15. 00:43
"/swagger-resources/**", "/swagger-ui/index.html", "/swagger-ui/**", "/v2/api-docs", "/webjars/**"
다음 URI들을 스프링 시큐리티 설정에서 permitAll로 허용해주었다.
난 허용된 요청을 제외하고는 다 인증을 받도록 구현해서..
만약에 모든 요청을 다 허용했다면, 위 과정이 필요없었을거다.
참고 👇
Springfox swagger-ui.html unable to infer base URL - Caused by missing cookies
We have our Spring Boot services behind an API Gateway. With an earlier version of Springfox - 2.1.2 we had no issues in loading the swagger-ui.html page. This worked with Spring Boot 1.4.3.RELEASE...
stackoverflow.com
반응형