i misspelled config

This commit is contained in:
hippoz 2021-01-20 03:04:21 +02:00
parent 1f3d4adba1
commit c94b7be5fb
Signed by untrusted user who does not match committer: hippoz
GPG key ID: 7C52899193467641

View file

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