Vue cross-domain problem, cookies can not carry, CAPTCHA?

header ("Access-Control-Allow-Origin:*");
header ("Access-Control-Allow-Methods:POST,GET");
header ("Access-Control-Allow-Credentials: true");
header (" Access-Control-Allow-Headers:x-requested-with,content-type");
background cross-domain is all set,
but it"s not true if you use proxyTable,cookies, and you don"t need proxyTable to prompt me to cross-domain. What do I test locally * not allowed
can"t handle it

Mar.04,2021

it seems that this
header ("Access-Control-Allow-Origin:*") cannot be used;

permissions are too large. It should be OK to open a specified domain name.

another is that the client also needs to set
withCredentials: true

.
Menu