diff --git a/rsbuild.config.ts b/rsbuild.config.ts index 1f9ab27..e8158f5 100644 --- a/rsbuild.config.ts +++ b/rsbuild.config.ts @@ -38,6 +38,9 @@ const integration = { proxy: { "/": { target: `http://${host}:${backend}`, + headers: { + origin: `http://${host}:${backend}`, + }, bypass(req, res, proxyOptions) { if (req.url.includes("/rsbuild/")) return req.url return null