Vendure and Cookies #638
-
Hey, I had an idea to make a thread for anyone who is having trouble with setting up cookies with Vendure. @michaelbromley shared a pretty good GitHub gist which helps in setting up Nginx the right way to allow cookies I also found the following repo quite helpful in debugging cookie issues I also had a few questions
// plugin.ts
import { INestApplication } from '@nestjs/common';
import { VendurePlugin } from '@vendure/core';
@VendurePlugin({})
export class ProxyPlugin {
static beforeVendureBootstrap(app: INestApplication): void | Promise<void> {
app.set("trust proxy", 1);
//^^ Property 'set' does not exist on type 'INestApplication'.ts(2339)
}
} So what is the correct way to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Regarding the
Reference: nestjs/nest#2293 (comment) |
Beta Was this translation helpful? Give feedback.
-
Is there an updated answer to this? |
Beta Was this translation helpful? Give feedback.
Regarding the
app.set()
issue, you can cast theapp
object to beNestExpressApplication
(which is what it actually is):Reference: nestjs/nest#2293 (comment)