1. Demand The local test domain name is the same as the online domain name to ensure correct cookie delivery and SSO testing. Note: After SSO login, the relevant cookies are added to the fourth-level domain name, so the local test domain name and the online interface domain name must be the same. 2. Solution Configure the Host file to point the online domain name to Localhost: Configure Nginx for corresponding forwarding: server { listen 80; listen [::]:80; server_name ${product.xxx.xxx.com}; location /api { proxy_pass https://${ip.ip.ip.ip}; proxy_set_header Host $host; } location / { proxy_pass http://localhost:8080; proxy_set_header Host $host; } } Configure vue.config.js to avoid Invalid Host header error: { devServer: { disableHostCheck: true } } The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Common date comparison and calculation functions in MySQL
>>: Docker practice: Python application containerization
Say goodbye to the past Before vscode had remote ...
Preface: Front-end: jq+h5 to achieve the nine-gri...
This article shares the specific code of Vue to a...
React is a JAVASCRIPT library for building user i...
Table of contents Preface 1. Rendering 2. Code 3....
An error message appears when MySQL is started in...
<br />Reading is a very important part of th...
You can add comments to MySQL SQL statements. Her...
Copy code The code is as follows: <html> &l...
By default, the width and height of the table are...
Table of contents 1. View the storage engine of t...
Table of contents Cache function in vue2 Transfor...
The main contents of this article are as follows:...
MySQL is a relational database management system ...
To merge the following two files, merge them toge...