https://github.com/numtostr/nest-cookie-issue
https://github.com/numtostr/nest-cookie-issue
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/numtostr/nest-cookie-issue
- Owner: numToStr
- Created: 2020-09-27T14:59:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-27T15:01:53.000Z (over 5 years ago)
- Last Synced: 2025-03-06T06:32:21.494Z (about 1 year ago)
- Language: TypeScript
- Size: 56.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```