mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
api core: fix cors env variable
This commit is contained in:
parent
40c17f6e33
commit
f8f85b771b
|
@ -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