Compare commits

...
Author SHA1 Message Date
Marcos Rodrigues Silva a2fbeb97cc Merge pull request #377 from dadosfera/feature/auth-cookie
UPDATE: test cors domain
2025-09-08 15:25:05 -03:00
marcos-silva-rodrigues 288a796f46 UPDATE: test cors domain 2025-09-08 15:22:26 -03:00
Marcos Rodrigues Silva b5a1e93770 Merge pull request #376 from dadosfera/feature/auth-cookie
UPDATE: cookie path
2025-09-08 10:32:32 -03:00
marcos-silva-rodrigues 1ee49ceab8 UPDATE: cookie path 2025-09-08 10:30:56 -03:00
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ async function bootstrap() {
const app = await NestFactory.create(AppModule, {
logger,
cors: {
origin: '*',
origin: 'https://app.stg.dadosfera.ai',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
preflightContinue: false,
optionsSuccessStatus: 204,
+3 -3
View File
@@ -573,7 +573,7 @@ export class AuthController {
this.logger.info('Set Cookie ddf-auth')
res.cookie('ddf-auth', data.accessToken, {
domain: 'dadosfera.ai',
domain: '.dadosfera.ai',
maxAge: exp,
httpOnly: true,
secure: true,
@@ -584,7 +584,7 @@ export class AuthController {
if (data.refreshToken) {
this.logger.info('Set Cookie ddf-refresh-auth')
res.cookie('ddf-refresh-auth', data.refreshToken, {
domain: 'dadosfera.ai',
domain: '.dadosfera.ai',
maxAge: exp,
httpOnly: true,
secure: true,
@@ -595,7 +595,7 @@ export class AuthController {
if (data.userId) {
this.logger.info('Set Cookie ddf-refresh-auth')
res.cookie('ddf-user-id', data.userId, {
domain: 'dadosfera.ai',
domain: '.dadosfera.ai',
maxAge: exp,
httpOnly: true,
secure: true,