When angularjs1 sends an ajax request, how does cookie put it in the request header?

now I use an interface written by angularjs. I use the angularjs method to set withCredentials to true. In the search method, it is said that if you set it to true,cookie, you can put it in the request header and pass it to the background, but it has no effect. An unauthorized error has been reported in 401 all the time. The image is as follows:

.

does anyone know what this is all about? What"s even weirder is that content-type is set to form

Mar.11,2021

homologous policy:

the requested url address must be in the same domain as the url address on the browser, that is, the domain name, port, and protocol.

when the port number is adjusted, let the calling interface in the background go to the default port. Similarly, when you call the interface, cancel the port field

Menu