blade-system/tenant/info报错

Blade 未结 2 167
zhoushr
zhoushr 2024-08-24 17:06

SpringBoot 3.2.7 ,

登陆就失败,请

login:1 Access to XMLHttpRequest at 'http://127.0.0.1:8683/blade-system/tenant/info?domain=http:%2F%2Flocalhost:2888%2Flogin' from origin 'http://localhost:2888' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.


image.png

2条回答
  •  zhx1994
    zhx1994 (楼主)
    2024-08-25 17:22

    你访问跨域了,用127.0.0.1去访问,不要用localhost去访问。

提交回复