make config specify protocol for address

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