본문 바로가기

내가_겪은_문제들

swagger cors

 

...
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.servers.Server;
...
@OpenAPIDefinition(servers = {@Server(url = "/", description = "Default Server URL")})

@SpringBootApplication
public class MyApplication {
...
}

 

https://stackoverflow.com/questions/70843940/springdoc-openapi-ui-how-do-i-set-the-request-to-https

 

springdoc-openapi-ui How do I set the request to HTTPS

When I publish, I will use HTTPS requests instead of HTTP, but swagger original URL is still HTTP, I have no idea how to set it up, and there is no documentation for servers in the original springdoc-

stackoverflow.com

 

'내가_겪은_문제들' 카테고리의 다른 글

문제들 기록하기  (0) 2024.03.03
트러블슈팅 정리  (0) 2024.01.05
채팅 관련 문제  (0) 2024.01.01
회원가입, 로그인 관련 문제  (1) 2023.12.31
문제 정리하기 (2)  (1) 2023.12.31