From f8f85b771bccdf34131f41feafc6a63e388fa1df Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 16 Feb 2024 08:39:31 +0600 Subject: [PATCH 1/2] api core: fix cors env variable --- src/core/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/api.js b/src/core/api.js index 4ec36c34..5f910315 100644 --- a/src/core/api.js +++ b/src/core/api.js @@ -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 } : {}; From 0432cd1c00b3899455d5279c3bb25dca7ff212b1 Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 16 Feb 2024 08:41:20 +0600 Subject: [PATCH 2/2] package: bump version to 7.10.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bceef800..394c7126 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cobalt", "description": "save what you love", - "version": "7.10.2", + "version": "7.10.3", "author": "wukko", "exports": "./src/cobalt.js", "type": "module",