Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
fix: unable to redirect after login when cookie samesite set to stric…
Browse files Browse the repository at this point in the history
…t (no idea why)
  • Loading branch information
resqiar committed Aug 18, 2021
1 parent 85dde8c commit 64706fd
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions dikser/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as passport from 'passport'
import * as redis from 'redis'
import * as connectRedis from 'connect-redis'
import { Client } from 'connect-redis'
// import * as helmet from 'helmet'
import * as helmet from 'helmet'

async function bootstrap() {
const app = await NestFactory.create(AppModule)
Expand All @@ -29,19 +29,19 @@ async function bootstrap() {
* Helmet configurations
* @see https://github.com/helmetjs/helmet#how-it-works
*/
// app.use(
// helmet({
// frameguard: {
// action: 'deny',
// },
// crossOriginResourcePolicy: { policy: 'same-site' },
// crossOriginEmbedderPolicy: true,
// crossOriginOpenerPolicy: true,
// dnsPrefetchControl: {
// allow: true,
// },
// })
// )
app.use(
helmet({
frameguard: {
action: 'deny',
},
crossOriginResourcePolicy: { policy: 'same-site' },
crossOriginEmbedderPolicy: true,
crossOriginOpenerPolicy: true,
dnsPrefetchControl: {
allow: true,
},
})
)

// Redis config
const REDIS_URI = process.env.REDIS_TLS_URL
Expand Down

0 comments on commit 64706fd

Please sign in to comment.