make config specify protocol for address

This commit is contained in:
hippoz 2021-01-20 03:01:21 +02:00
parent a5d021972b
commit 74091d2a49
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: `http://${config.address}`, origin: config.address,
credentials: true, credentials: true,
optionsSuccessStatus: 200 optionsSuccessStatus: 200
})); }));