Questions tagged [fastify-cookie]
5 questions
2
votes
0 answers
NestJs registering Fastify/Cookie plugin
Hi i am trying to register the @fastify/cookie plugin to my nestjs backend but i have an error and i don't know why because in previous code i was doing the same thinks and was working , i don't know if versions changed or if there is a new way of…

Alexandre29
- 57
- 2
- 8
0
votes
0 answers
Fastify cookie setup not working from subdomain
I've scoured the internet for a while, but haven't been able to find out what I might be doing wrong.
I've a fastify server which is hosted on a subdomain: https://api.example.com
The UI is served via CloudFlare pages on the domain…

johnhogl8
- 1
- 1
0
votes
0 answers
Fastify CSRF does not create a header or cookie and does not check it
I have a frontend in NextJS and a backend in NestJS. I noticed that the token is not checked on the back-end side, nor is any X-CSRF-TOKEN header or cookie created, even though the code is in accordance with the documentation. After researching and…

Tebyy
- 53
- 5
0
votes
1 answer
Apply fastifySession Middleware in nest js - Using the MiddlewareConsumer in the AppModule
I have a Nestjs app with Fastify. I want to apply the fastifySession middleware using the MiddlewareConsumer. Usually, it works like below:
configure(consumer: MiddlewareConsumer) {
consumer
.apply(
fastifySession,
)
…

Mohamed Gad
- 56
- 1
- 9
0
votes
1 answer
How to use cookie in middleware of Nest JS ( Fastify )
I'm using
Nestjs CLI 9.0.0
Nestjs common - Nestjs Platform Fastify 9.0.11
Fastify - 4.4.0
@fastify/cookie - 8.0.0
I try to use cookie and set cookie in middleware.
But it seems all about cookie is undefined.
this.logger.debug("cookies",…

armada45
- 103
- 9