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
Carousel animation can improve the appearance and...
The following case reviews the knowledge points o...
MySQL can be set when it is installed, but it see...
Docker installation Install dependency packages s...
Table of contents 2. Tried methods 2.1 keep-alive...
CentOS 8 changed the software package installatio...
This article shares the specific code of Navicat ...
I want to make a page using CSS3 rounded corners ...
Download image docker pull mysql:5.7 docker pull ...
Method 1: Use the target event attribute of the E...
A problem that front-end developers often encount...
Introduction to Angular Angular is an open source...
IFNULL(expr1,expr2) If expr1 is not NULL, IFNULL(...
Recent product testing found a problem that when ...
Table of contents summary Problem Description Ana...