Skip to content

Commit

Permalink
update https readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Sep 26, 2024
1 parent 4b2c22c commit 3903563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions local-certs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ NODE_ENV=local

세팅 후에 클라이언트에서 요청하는 로컬 popo-nest-api 서버의 주소가 `http://localhost:4000`에서 `https://localhost:4000`으로 바뀌어야 한다는 것도 잊지 말자!!

## NODE_TLS_REJECT_UNAUTHORIZED

그리고 Client-side에서 아래의 ENV를 설정해줘야 한다.

```sh
NODE_TLS_REJECT_UNAUTHORIZED=0
```

## Chrome Allow Insecure Localhost

또, 크롬에서도 insecure localhost에 대한 접속을 허용해줘야 한다. `chrome://flags/#allow-insecure-localhost` 경로로 이동해서 해당 옵션을 Enabled로 바꾸자.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function bootstrap() {
};
}

const app = await NestFactory.create(AppModule, { httpsOptions });;
const app = await NestFactory.create(AppModule, { httpsOptions });

app.use(cookieParser());

Expand Down

0 comments on commit 3903563

Please sign in to comment.