This is an automated email from the ASF dual-hosted git repository.

lizhimins pushed a commit to branch rocketmq-studio
in repository https://gitbox.apache.org/repos/asf/rocketmq-dashboard.git


The following commit(s) were added to refs/heads/rocketmq-studio by this push:
     new 103b1f2cd fix(config): align the CORS origin port with the rest of the 
stack (#5722)
103b1f2cd is described below

commit 103b1f2cd29199485d3271306c01621c6d418693
Author: wizcraft_kris <[email protected]>
AuthorDate: Sat Oct 10 12:04:37 2026 +0800

    fix(config): align the CORS origin port with the rest of the stack (#5722)
    
    `application.yml` was the only place in the repository carrying 
`http://localhost:5174` / `127.0.0.1:5174` for `studio.cors.allowed-origins`; 
`web/vite.config.ts`, `CorsConfig`, the compose file and two tests all use 
5173, so a dev-server origin was rejected by the very default that is meant to 
allow it. One-line change, keeping the `${STUDIO_CORS_ALLOWED_ORIGINS:...}` 
override that `CONTRIBUTING.md` documents.
    
    Config only - no tests to run. Accepted as an exception to the "no 
community changes to `application.yml`" rule because it is a 
configuration-correctness fix (same ruling as #5666).
---
 server/src/main/resources/application.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/resources/application.yml 
b/server/src/main/resources/application.yml
index a521b561d..decd30432 100644
--- a/server/src/main/resources/application.yml
+++ b/server/src/main/resources/application.yml
@@ -76,7 +76,7 @@ management:
 
 studio:
   cors:
-    allowed-origins: 
${STUDIO_CORS_ALLOWED_ORIGINS:http://localhost:5174,http://127.0.0.1:5174}
+    allowed-origins: 
${STUDIO_CORS_ALLOWED_ORIGINS:http://localhost:5173,http://127.0.0.1:5173}
   auth:
     login-required: ${STUDIO_AUTH_LOGIN_REQUIRED:true}
     session-cookie-name: rmq_studio_session

Reply via email to