Encounter cross-domain problems in IE browser in VUE project;

console:

SEC7118: XMLHttpRequest requires cross-domain resource sharing (CORS). SEC7119:XMLHttpRequest requires pre-flight CORS.Copy the code

Way1: Sets Internet options

One way to solve this problem is: Tools>Internet Options>Privacy

But that’s not the best way; You can’t ask every customer to manually set it;

Is there a solution for other kids?