Home > Article > Web Front-end > How to cancel cross-domain in uniapp
How to cancel cross-domain uniapp: First create [uni-app] and configure the access proxy; then create a new page file and insert tag elements; then call the encapsulation method; finally save the preview for viewing.
The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, Dell G3 computer.
How to cancel cross-domain uniapp:
1. In the opened HBuilderX tool, create uni-app and open it
2. Open the manifest.json file in the project and find the specific configuration
##3. Switch to the source code view and add an h5 and devServer 4. Open the newly created page file and insert the tag element 5. In the methods method, define the function buildData, Then calluni.request()
Related free learning recommendations:Recommended (free):php programming (video)
The above is the detailed content of How to cancel cross-domain in uniapp. For more information, please follow other related articles on the PHP Chinese website!