Roy
Roy
前后台放在一起,springboot启动,访问127.0.0.1能出现界面,f12看浏览器控制台,提示跨域访问Access to XMLHttpRequest at 'https://cat-match.easygame2021.com/sheep/v1/game/get_bullet?t=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTAwMjA0MDIsIm5iZiI6MTY1ODkxODIwMiwiaWF0IjoxNjU4OTE2NDAyLCJqdGkiOiJDTTpjYXRfbWF0Y2g6bHQxMjM0NTYiLCJvcGVuX2lkIjoiIiwidWlkIjoxMDAwMDEsImRlYnVnIjoiIiwibGFuZyI6IiJ9.NQZAWBLYtq6hBff9YjNcaI2Soa6Z5vwbIU7YnjP1KBQ' from origin 'http://127.0.0.1:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
i have met the same problem Connection refused: connect), for url : http://127.0.0.1:8080/xxl-job-admin/api/registry, content=null