samantha's personal website!~ ✨ samanthanguyen.me
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

set http headers

+16
+16
src/hooks.server.ts
··· 1 + import type { Handle } from '@sveltejs/kit' 2 + 3 + const httpHeaders = { 4 + 'X-Content-Type-Options': 'nosniff', 5 + 'X-Frame-Options': 'DENY', 6 + 'X-XSS-Protection': '0', 7 + } 8 + 9 + export const handle: Handle = async ({ event, resolve }) => { 10 + const response = await resolve(event) 11 + Object.entries(httpHeaders).forEach( 12 + ([header, value]) => response.headers.set(header, value), 13 + ) 14 + 15 + return response 16 + }