An open API service indexing awesome lists of open source software.

https://github.com/numtostr/nest-cookie-issue


https://github.com/numtostr/nest-cookie-issue

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# Nest.js Exception Filter Bug

## Installation

```
yarn
```

or

```
npm install
```

## Running

```
yarn dev
```

or

```
npm run dev
```

## Bug Reproduction

#### Sets a cookie named `hello` with value `world`

```sh
curl http://localhost:5000/set-cookie
```

#### Returns all the cookies

```sh
curl http://localhost:5000/get-cookie
```

#### This will send `status=401` as `req.cookies` is undefined in the middleware

```sh
curl http://localhost:5000/boom
```