Home > Back-end >  Springboot security access after a successful login api302 (configured cross-domain)
Springboot security access after a successful login api302 (configured cross-domain)

Time:11-23

Similar to the https://segmentfault.com/q/1010000017073493
Like this problem, but I had cross-domain configuration

CodePudding user response:

Bosses, https://segmentfault.com/q/1010000017073493/a-1020000017074611 is similar to the question, kneel

CodePudding user response:


Export const postRequest=(url, params)=& gt; {
Return axios ({
Method: "post",
Url: ` ${base} ${url} `,
Data: params,
TransformRequest: [function (data) {
Let ret='
For (let it in the data) {
Ret +=encodeURIComponent (it) + '=' + encodeURIComponent (data [it]) + '& amp; '
}
Return ret
},
Headers: {
'the content-type' : 'application/x - WWW - form - urlencoded',
"withCredentials" : true
}
});
}

CodePudding user response:

The
refer to the original poster lzs19278225 response:

is similar to the https://segmentfault.com/q/1010000017073493Like this problem, but I configured the cross-domain
excuse me to this address, has also had the same problem recently, cross domain login successfully, you can see the response of the cookie, but access to other port 403 times
  • Related