kaiser20106 commented on issue #328:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/328#issuecomment-3081861255

   > > > > No description provided.
   > > > 
   > > > 
   > > > [@hegphegp](https://github.com/hegphegp) The latest image is based on 
the repository on June 12, 25, and already supports 5x.
   > > 
   > > 
   > > After looking at the source code, I think that the latest front-end page 
may not be compiled in when using dockerfile to compile
   > 
   > [@CocytusElias](https://github.com/CocytusElias) Actually, since the code 
was recently updated and hasn’t been released yet, the image isn’t built from 
the latest commit. If you are in a hurry, you can build it yourself according 
to the README.
   
   <img width="3824" height="797" alt="Image" 
src="https://github.com/user-attachments/assets/611c2b0f-92cf-4a1f-9556-71791893470a";
 />
   
   browser console report error :
   Access to fetch at 'http://localhost:8082/topic/list.queryTopicType' from 
origin 'http://127.0.0.1:8082' has been blocked by CORS policy: No 
'Access-Control-Allow-Origin' header is present on the requested resource.
   Failed to load resource: net::ERR_FAILED
   
   
   It seems that cors have not been added to the code
   
   remoteApi.js
   ```
   const appConfig = {
       apiBaseUrl: 'http://localhost:8082'
   };
   
   ```
   
   AuthWebMVCConfigurerAdapter
   ```
   
       @Override
       public void addCorsMappings(CorsRegistry registry) {
   
           registry.addMapping("/**")
                   .allowedOriginPatterns("http://localhost:3003";)
                   .allowedMethods("GET", "HEAD", "POST", "PUT", "DELETE", 
"OPTIONS")
                   .maxAge(3600)
                   .allowCredentials(true)
                   .allowedHeaders("content-type", "Authorization", 
"X-Requested-With", "Origin", "Accept")
                   .exposedHeaders("authorization");
       }
   ```
   


-- 
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