https://github.com/numtostr/nest-cookie-issue
https://github.com/numtostr/nest-cookie-issue
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/numtostr/nest-cookie-issue
- Owner: numToStr
- Created: 2020-09-27T14:59:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-27T15:01:53.000Z (over 4 years ago)
- Last Synced: 2025-01-16T17:54:31.034Z (5 months 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
```