강의

멘토링

커뮤니티

Inflearn Community Q&A

ghrp82770735's profile image
ghrp82770735

asked

Solid backend NestJS, from basics to advanced

Swagger API Security Configuration & Login API Frontend Connection

swagger ui error

Resolved

Written on

·

1.4K

1

swagger ui 사용 시 localhost 외 외부에서 접속시 net::ERR_SSL_PROTOCOL_ERROR 에러가 발생합니다 . github issue 문제도 있던데 여기 부분은 어떻게 해결하는지 알고싶습니다. 

해당 issue url 입니다 https://github.com/nestjs/swagger/issues/1006

errorexpressswaggeruinodejsmongodbssrNestJS

Answer 2

1

적어두신 github issue의 내용이 ghrp8277님께서 겪는 문제라면 

https://github.com/scottie1984/swagger-ui-express/issues/212#issuecomment-825803088

이게 해결한 방법중 하나라고 적혀있네요

amamov님의 프로필 이미지
amamov
Instructor

답변 감사합니다! :)

👍

0

amamov님의 프로필 이미지
amamov
Instructor

안녕하세요 ghrp8277님!

김동완님 말씀대로 helmet 미들웨어가 swagger 서빙을 방해하여 생긴 문제일 수 있습니다! 여러가지 이유로 해당 이슈가 생길 수 있기 때문에 미해결 상태라면 관련해서 main.ts 파일, 서버 구축 상황을 설명해주시면 도움드리겠습니다.

ghrp82770735's profile image
ghrp82770735

asked

Ask a question