api core: fix cors env variable

This commit is contained in:
wukko 2024-02-16 08:39:31 +06:00
parent 40c17f6e33
commit f8f85b771b

View file

@ -15,7 +15,7 @@ import { verifyStream } from "../modules/stream/manage.js";
export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
const corsConfig = process.env.cors === '0' ? {
origin: process.env.webURL,
origin: process.env.CORS_URL,
optionsSuccessStatus: 200
} : {};