아래에 따르면 swagger의 try-it-out으로 Set-Cookie헤더가 나오지 않습니다. 이는 보안 문제로인해 지원하지 않은 것 같아요
Note for Swagger UI and Swagger Editor users: Cookie authentication is currently not supported for "try it out" requests due to browser security restrictions. See this issue for more information. SwaggerHub does not have this limitation.
해결 방안 custom Response Header를 ResourceSnippet에 넣어서 해결했음..!!
success.Snippets = builder()
.responseHeaders(
headerWithName("Set-Cookie").description("access_token"),
)
Java
복사
