Daily chicken soup, every thought you want to learn is your future self asking for help
Regarding the cross-domain issue, Xiaobai, a novice front-end, must be in the fog. Just looking up information on the Internet will tell you to configure various headers.
But you still don’t know, so I will boldly tell you that for Xiaobai’s front-end, all the cross-domain problems you encounter can be configured by the back-end colleagues .
Suppose your project accesses a back-end server https://xxx.com, your project address is localhost:80 and an error is reported when accessing the interface.
So what you should do now is to tell the back-end colleagues [Hello, help me configure this domain name https://xxx.com cross-domain] and then it's over! Don't worry about it anymore, okay?
Of course, you still need to learn the relevant configuration, or you will catch up with a noob back-end colleague, and both of you will be stuck.