Skip to content

Commit

Permalink
signable headers and sameSite lax
Browse files Browse the repository at this point in the history
  • Loading branch information
timolegros authored and ilijabojanovic committed Oct 23, 2024
1 parent 8fab6ec commit 0351bef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libs/adapters/src/blobStorage/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export async function getSignedUrl_S3sdk(
}),
{
expiresIn: options.ttl,
signableHeaders: new Set(['content-type']),
},
);
}
Expand Down
1 change: 1 addition & 0 deletions packages/commonwealth/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export async function main(
saveUninitialized: false,
cookie: {
maxAge: config.AUTH.SESSION_EXPIRY_MILLIS,
sameSite: 'lax',
},
});

Expand Down

0 comments on commit 0351bef

Please sign in to comment.