api core: fix cors env variable
This commit is contained in:
parent
40c17f6e33
commit
f8f85b771b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
} : {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue