the statusphere demo reworked into a vite/react app in a monorepo
0
fork

Configure Feed

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

Remove helmet (overkill)

-12
-1
package.json
··· 26 26 "envalid": "^8.0.0", 27 27 "express": "^4.19.2", 28 28 "express-rate-limit": "^7.2.0", 29 - "helmet": "^7.1.0", 30 29 "http-status-codes": "^2.3.0", 31 30 "iron-session": "^8.0.2", 32 31 "kysely": "^0.27.4",
-11
src/server.ts
··· 1 1 import events from 'node:events' 2 2 import type http from 'node:http' 3 3 import express, { type Express } from 'express' 4 - import helmet from 'helmet' 5 4 import { pino } from 'pino' 6 5 7 6 import { createDb, migrateToLatest } from '#/db' ··· 50 49 // Middlewares 51 50 app.use(express.json()) 52 51 app.use(express.urlencoded({ extended: true })) 53 - app.use( 54 - helmet({ 55 - contentSecurityPolicy: { 56 - directives: { 57 - // allow oauth redirect when submitting login form 58 - formAction: null, 59 - }, 60 - }, 61 - }) 62 - ) 63 52 64 53 // Request logging 65 54 app.use(requestLogger)