mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-17 18:58:33 +00:00
fix: fip corsWildcard
variable check in corsConfig
This commit is contained in:
parent
ae87c4e7ed
commit
ab1cc1a2bf
@ -14,7 +14,7 @@ import { generateHmac } from "../modules/sub/crypto.js";
|
||||
import { verifyStream, getInternalStream } from "../modules/stream/manage.js";
|
||||
|
||||
export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
|
||||
const corsConfig = env.corsWildcard ? {
|
||||
const corsConfig = !env.corsWildcard ? {
|
||||
origin: env.corsURL,
|
||||
optionsSuccessStatus: 200
|
||||
} : {};
|
||||
|
Loading…
Reference in New Issue
Block a user