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.
你访问跨域了,用127.0.0.1去访问,不要用localhost去访问。
还是报错
Access to XMLHttpRequest at 'http://127.0.0.1:8683/blade-auth/captcha' from origin 'http://127.0.0.1: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.
扫一扫访问 Blade技术社区 移动端