Using axios, how to keep the cookie request header information set by the backend when it is turned on locally

clipboard.png
how do I keep this coolie when other interfaces request it? -sharp-sharp-sharp problem description

May.17,2022

I don't understand. Isn't cookie automatically transmitted? There is no need for you to operate


1 cookie cookies are automatically brought with the request, provided that without cross-domain, cross-domain requests are not allowed to carry credential information such as cookie
2. Since axios is used, the front and rear ends should be developed separately. Cross-domain development exists during development, and cross-domain servers are required to allow cross-domain cookies.

Menu