i misspelled config

This commit is contained in:
hippoz 2021-01-20 03:04:21 +02:00
parent 1f3d4adba1
commit c94b7be5fb
No known key found for this signature in database
GPG key ID: 7C52899193467641

View file

@ -18,7 +18,7 @@ app.use(express.urlencoded({ extended: false }));
app.use(express.json()); app.use(express.json());
app.use(cookieParser()); app.use(cookieParser());
app.use(cors({ app.use(cors({
origin: config.isHttps ? `https://${confg.address}` : `http://${config.address}`, origin: config.isHttps ? `https://${config.address}` : `http://${config.address}`,
credentials: true, credentials: true,
optionsSuccessStatus: 200 optionsSuccessStatus: 200
})); }));