1
0
forked from noxious/server

Cors update

This commit is contained in:
Dennis Postma 2024-11-05 00:19:02 +01:00
parent 3fbc5f4e87
commit 929a36554a

View File

@ -27,7 +27,9 @@ export class Server {
*/
constructor() {
this.app = express()
this.app.use(cors())
this.app.use(cors({
origin: 'https://sylvan.quest'
}))
this.app.use(express.json())
this.app.use(express.urlencoded({ extended: true }))
this.http = httpServer(this.app)