This article uses a case to introduce angularJs to solve cross-origin problems. it is of great reference value. if you are interested in learning it together, let's first make some preparations, otherwise, you will understand what I mean, and others will not understand it. even if others understand it, then someone will not understand it. then, you have to say, I mean this description must be done, the answer is required, so that you can better understand it.
We can use two primary domain names or one primary domain name + one secondary domain name as an example to demonstrate cross-origin problems.
Client a.com
Server B .com or s.a.com
AngularJs V1.2.25
If the preparation work is well done, we just need to expose our editor as subline. I will not tell him this ordinary person.
Some people have been clamoring for a long time. what is the significance of your proposal? Why can't you just hide the flowers? Well, I can write the flowers. Let's take a look at the full cross-origin instance.
Next, let's first look at how the client requests data.
Note: our code is written under the.com domain name.