mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-29 01:39:36 +02:00
feat: add num_cities field to RegionSerializer, update RegionCard to display city count, and enhance CSRF token handling
This commit is contained in:
parent
abe870506f
commit
22790ae7c0
6 changed files with 30 additions and 7 deletions
|
@ -3,6 +3,7 @@ import { sequence } from '@sveltejs/kit/hooks';
|
|||
const PUBLIC_SERVER_URL = process.env['PUBLIC_SERVER_URL'];
|
||||
|
||||
export const authHook: Handle = async ({ event, resolve }) => {
|
||||
event.cookies.delete('csrftoken', { path: '/' });
|
||||
try {
|
||||
let sessionid = event.cookies.get('sessionid');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue