当前位置:网站首页>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
)
边栏推荐
- 如何保证高速公路供电可靠
- 再见,2020,这碗毒鸡汤,我先干了
- Several guesses about the design of Tencent conference number
- 【Try to Hack】masscan
- Thinking (86): master-slave realization idea
- 腾讯会议号设计的几种猜测
- Niuke.com: the double pointer problem of receiving rainwater
- Avoid confusion when switching between arouter components
- Androidkotlin comprehensive and detailed class usage grammar learning guide
- 牛客网:接雨水的双指针问题
猜你喜欢

Bitmap加载内存分析

项目中常用到的 19 条 MySQL 优化

Graph theory (tree diameter)

一个人竟然撸了一个微博 APP

Task queue of laravel

Some explanations of Tim timer of embedded interface and STM32 template library function of NVIC

How to achieve the turning effect of wechat video recording?

图像分割-数据标注
Several cases of index invalidation caused by MySQL

STM32-------定时器
随机推荐
Bitmap加载内存分析
三款很酷很骚气的底部导航
Postman return value Chinese garbled????
Solve the problem that slf4j logs are not printed
Kotlin coroutine asynchronous flow
Image segmentation - data annotation
List中subList的add造成的死循环
Eight models of data analysis: detailed PEST model
Why can't the netherworld fortress machine be remotely connected to the server? What are the ways to solve such problems?
2018/GAN:Self-Attention Generative Adversarial Networks自我注意生成对抗网络
这个高仿小米商城项目太惊艳了
Telecommuting: how to become a master of time management| Community essay solicitation
嵌入式接口复习资料
What is the production process of enterprise website? How long does it take to design and build a website?
NLog details
图像分割-数据标注
【HackTheBox】 meow
Stm32 - - - - interruption externe
推荐4个Flutter重磅开源项目
Autofac details