diff --git a/src/api/website/index.ts b/src/api/website/index.ts index f7dee66..4dd487d 100644 --- a/src/api/website/index.ts +++ b/src/api/website/index.ts @@ -52,6 +52,8 @@ export default class WebsiteServer { app.use(cookieParser(v4())) + this.passport.init(app) + app.use(function (req, res, next) { res.setHeader('Access-Control-Allow-Origin', '*'); res.setHeader('Access-Control-Allow-Methods', 'GET, POST');