mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-12 20:02:19 +01:00
api core: fix cors env variable (#358)
This commit is contained in:
commit
e6e9f4f099
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "cobalt",
|
"name": "cobalt",
|
||||||
"description": "save what you love",
|
"description": "save what you love",
|
||||||
"version": "7.10.2",
|
"version": "7.10.3",
|
||||||
"author": "wukko",
|
"author": "wukko",
|
||||||
"exports": "./src/cobalt.js",
|
"exports": "./src/cobalt.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
|
@ -15,7 +15,7 @@ import { verifyStream } from "../modules/stream/manage.js";
|
||||||
|
|
||||||
export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
|
export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
|
||||||
const corsConfig = process.env.cors === '0' ? {
|
const corsConfig = process.env.cors === '0' ? {
|
||||||
origin: process.env.webURL,
|
origin: process.env.CORS_URL,
|
||||||
optionsSuccessStatus: 200
|
optionsSuccessStatus: 200
|
||||||
} : {};
|
} : {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue