zhangjianxing2011 opened a new issue, #7363:
URL: https://github.com/apache/rocketmq-dashboard/issues/7363

   ### Before Creating the Bug Report
   
   - [x] I have searched the [open 
issues](https://github.com/apache/rocketmq-dashboard/issues) of this repository 
and believe that this is not a duplicate.
   
   - [x] This is a defect in RocketMQ Studio, not a usage question and not a 
defect in another Apache RocketMQ repository.
   
   - [x] I can reproduce this on the current `master` branch, or I have stated 
the exact version I am running below.
   
   
   ### Studio Version
   
   SyntaxError: Unexpected token 'I', "Invalid CORS request" is not valid JSON
   
   `  dashboard:
       image: apacherocketmq/rocketmq-dashboard:2.1.0
       container_name: rocketmq-dashboard
       restart: unless-stopped
   
       depends_on:
         - namesrv
         - broker
   
       ports:
         - "127.0.0.1:8088:8082"
   
       environment:
         JAVA_OPTS: >-
           -Drocketmq.namesrv.addr=namesrv:9876
           -Drocketmq.config.loginRequired=true
           -Drocketmq.config.dataPath=/tmp/rocketmq-console/data
   
       volumes:
         - 
./dashboard/users.properties:/tmp/rocketmq-console/data/users.properties:ro
   
       networks:
         - rocketmq
    `
   ./dashboard/users.properties 配置如下
   `rmqadmin=abcdefgh567,1`
   
   broker.conf
   `
   brokerName=broker-a
   brokerId=0
   deleteWhen = 04
   brokerClusterName=DefaultCluster
   brokerRole = ASYNC_MASTER
   flushDiskType = ASYNC_FLUSH
   
   brokerIP1=172.20.255.151
   
   listenPort=10911
   namesrvAddr=
   
   autoCreateTopicEnable=true
   autoCreateSubscriptionGroup=true
   
   #acl
   aclEnable=false
   `
   nginx配置
   `
   server {
       listen 443 ssl;
       listen [::]:443 ssl;
       server_name rocketmq.xxx.com;
       ssl_certificate      /etc/nginx/ssl/xxx/cert.pem;
       ssl_certificate_key  /etc/nginx/ssl/xxx/key.pem;
       ssl_session_cache shared:SMS_TLS:10m;
       ssl_session_timeout 1d;
   
       location / {
           proxy_pass http://127.0.0.1:8088;
           proxy_set_header Host $host;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
           proxy_set_header X-Forwarded-Proto $scheme;
           proxy_set_header X-Forwarded-Host $host;
       }
   }
   `
   
   
   
   
   ### Runtime Environment
   
   ubuntu 26,nginx/1.30.6,rocketmq:5.5.0,rocketmq-dashboard:2.1.0,
   
   ### Connected RocketMQ Cluster
   
   没有搭建集群
   
   ### Build Toolchain
   
   _No response_
   
   ### Describe the Bug
   
   点击登录的时候前端报错了
   
   ### Steps to Reproduce
   
   参照上面的搭建
   
   ### What Did You Expect to See?
   
   正常的登录
   
   ### What Did You See Instead?
   
   报错了 无法登录https://rocketmq.cosms.solutions/login/login.do
   Request method
   POST
   Status code
   403 Forbidden
   
   
   ### Additional Context
   
   _No response_
   
   ### Are You Willing to Submit a Pull Request?
   
   - [ ] Yes, I am willing to submit a pull request.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to