From 956bad1c02c9b4f0534e4ac62d5961f7f303c696 Mon Sep 17 00:00:00 2001 From: Igor Somov Date: Sat, 21 Mar 2026 22:15:18 -0300 Subject: [PATCH 1/2] fix(ui): avoid forbidden origin in local dev proxy --- ui/vite.config.ts | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/ui/vite.config.ts b/ui/vite.config.ts index 9ebaf70..e2020f7 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -1,11 +1,28 @@ import { sveltekit } from '@sveltejs/kit/vite'; -import { defineConfig } from 'vite'; +import { defineConfig, type ProxyOptions } from 'vite'; + +function createLocalApiProxy(): ProxyOptions { + return { + target: 'http://127.0.0.1:19800', + configure(proxy) { + proxy.on('proxyReq', (proxyReq) => { + // Keep local dev requests same-origin from the browser's perspective. + proxyReq.removeHeader('origin'); + }); + } + }; +} export default defineConfig({ plugins: [sveltekit()], server: { proxy: { - '/api': 'http://127.0.0.1:19800' + '/api': createLocalApiProxy() + } + }, + preview: { + proxy: { + '/api': createLocalApiProxy() } } }); From 6bf6d523510907605a3b7af73403346d21cbe70f Mon Sep 17 00:00:00 2001 From: Igor Somov Date: Sat, 21 Mar 2026 22:17:14 -0300 Subject: [PATCH 2/2] v2026.3.21 --- build.zig.zon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig.zon b/build.zig.zon index 1b26cf6..ca80b40 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,6 @@ .{ .name = .nullhub, - .version = "2026.3.13", + .version = "2026.3.21", .fingerprint = 0x8708b11cb233b548, .minimum_zig_version = "0.15.2", .dependencies = .{},