After uniapp configures cross-domain, there is still a solution to the cross-domain problem

After uniapp configures cross-domain, there is still a solution to the cross-domain problem (Access to XMLHttpRequest at 'http://localhost:8080/login' from origin 'http://localhost:80)

Introduction

This article explains that after uniapp is configured with cross-domain, there is still a solution to the cross-domain problem (Access to XMLHttpRequest at 'http://localhost:8080/login' from origin 'http://localhost:80)

If there is no cross-domain problem configured, read this article, uniapp cross-domain problem solution

If you configure a cross-domain problem and still report an error, it is the problem of uniapp itself at this time. You only need to write the code in the unused
/api/form first, directly localhost, and then /api/write it in the used way to solve it.

Guess you like

Origin blog.csdn.net/qq_51447496/article/details/130975478