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
Table of contents How to deploy MySQL service usi...
1. Write a split script (splitNginxLog.sh) * Beca...
Yes, CSS has regular expressions too (Amen) Two p...
Step 1: Use Notepad to open the "my.ini"...
Apache Log4j2 reported a nuclear-level vulnerabil...
Preface In the Linux kernel, netfilter is a subsy...
Table of contents The first method: router-link (...
Structural (position) pseudo-class selector (CSS3...
Preface: I have always wanted to know how a SQL s...
Let's imitate Taobao's function of displa...
1. Use the <nobr> tag to achieve no line bre...
This article describes various ways to implement ...
1. Install the built-in Linux subsystem of win10 ...
1. Introduction to mysqldump mysqldump is a logic...
After installing the database, if you accidentall...