当前位置:网站首页>Cross domain issues of the new version of Google browser
Cross domain issues of the new version of Google browser
2022-06-23 23:45:00 【FHAdmin】
The new version of the firefox Firefox limits 127.0.0.1
When deploying tests locally , Using Firefox requires Front-end Change the service address in the background to http://localhost:8081
The browser also uses http://localhost:8080
Clean up the browser cache when finished , Otherwise it will not take effect
In case of server deployment , hold localhost Change to the actual server IP Or domain name
google browser , Front end and back end stay On the same computer
backstage If the service address in is http://localhost:8081
So when the browser accesses, it also uses http://localhost:8080
If the service address in the background is http://127.0.0.1:8081
So when the browser accesses, it also uses http://127.0.0.1:8080
If it is a domain name or extranet IP, Empathy
backstage If the service address in is http://www.xxx.com:8081
So when the browser accesses, it also uses http://www.xxx.com:8080
The address should be the same , Different ports
google browser , When the front end and the background are not on the same computer
The configuration shown in the figure needs to be modified
( Be careful , Just modify the background Try to clean up the browser cache )
Chrome 91 The settings after version are as follows
find google Chrome Quick start icon , Right click , attribute , Add a string of codes in red ( The scarlet letter is preceded by a space , Otherwise you can't save )
Shortcut -》 The goal is :
"C:\ProgramFiles\Google\Chrome\Application\chrome.exe"--disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure
( The default configuration of the new Google browser has changed , As a result, the cross domain threshold is raised , The front-end and back-end ports are different, and they are also cross domain , If IP Different browser configurations need to be modified . Previous Google browsers didn't have this problem , Maybe later versions will be updated and changed back , Firefox and other non google Kernel browsers don't have this problem ,
therefore , The browser configuration needs to be modified only when the two conditions are met at the same time
- Use google Kernel browser
- Front end and back end are deployed on different servers
In other cases, this configuration does not need to be modified
)
边栏推荐
猜你喜欢

PyQt5_ Qtablewidget paging radio right-click menu control

What is the production process of enterprise website? How long does it take to design and build a website?

Bitmap加载内存分析

STM32------ADC(电压检测)

再见,2020,这碗毒鸡汤,我先干了

高仿斗鱼 APP

Bitmap load memory analysis

不同网络结构的特征也能进行对比学习?蚂蚁&美团&南大&阿里提出跨架构自监督视频表示学习方法CACL,性能SOTA!...

Kotlin 协程 异步 异步流

ACM. HJ89 24点运算 ●●●
随机推荐
这个高仿小米商城项目太惊艳了
CTF go topic recurrence
Why can't the netherworld fortress machine be remotely connected to the server? What are the ways to solve such problems?
AutoCAD -- summarize three methods of drawing rounded corners in CAD
2022 Shandong Health Expo, Jinan International Health Industry Expo, China Nutrition and Health Exhibition
Kotlin coroutine asynchronous flow
Graph theory (nearest common ancestor LCA)
【HackTheBox】 meow
Stm32-------adc (voltage detection)
How to achieve the turning effect of wechat video recording?
Grpc security -2: fast implementation of server-side JWT authentication
19 MySQL optimizations commonly used in projects
6、STM32——串口数据收发基础
高仿斗鱼 APP
牛客网:接雨水的双指针问题
【Proteus仿真】T6963C驱动PG12864示例(带中英文显示)
网站ssl证书
Which securities dealers recommend? Is online account opening safe?
STM32------ADC(电压检测)
3D打印和激光切割流程的初步了解