From 15e7c99353609ffc555d6660f3f43b530156df48 Mon Sep 17 00:00:00 2001 From: lafay <2021211506@stu.hit.edu.cn> Date: Wed, 22 Apr 2026 16:40:11 +0800 Subject: [PATCH] chore(config): update allowed origins from bbs to withyou domain Update WebSocket and CORS allowed origins to reflect the project rename from "Carrot BBS" to "WithYou", changing bbs.littlelan.cn to withyou.littlelan.cn. --- internal/handler/ws_handler.go | 4 ++-- internal/middleware/cors.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/handler/ws_handler.go b/internal/handler/ws_handler.go index c85c85c..253d1d9 100644 --- a/internal/handler/ws_handler.go +++ b/internal/handler/ws_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "context" @@ -38,7 +38,7 @@ var upgrader = websocket.Upgrader{ } var allowedWebSocketOrigins = []string{ - "https://bbs.littlelan.cn", + "https://withyou.littlelan.cn", "https://admin.littlelan.cn", "https://browser.littlelan.cn", "http://localhost:3000", diff --git a/internal/middleware/cors.go b/internal/middleware/cors.go index a5e6d05..de5b937 100644 --- a/internal/middleware/cors.go +++ b/internal/middleware/cors.go @@ -8,7 +8,7 @@ import ( ) var allowedOrigins = []string{ - "https://bbs.littlelan.cn", + "https://withyou.littlelan.cn", "https://admin.littlelan.cn", "https://browser.littlelan.cn", "http://localhost:3000",