当前位置:网站首页>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
)
边栏推荐
猜你喜欢

Graph theory (tree diameter)

Analysis of Alibaba cloud Tianchi competition -- prediction of o2o coupon

Is the geTx status management in the flutter really so good to use?

图论(树的直径)

Autofac详解

7、STM32——LCD

Postman return value Chinese garbled????

接私活必备的 6 个开源项目

电子元器件行业B2B交易管理系统:提升数据化驱动能力,促进企业销售业绩增长

MySQL导致索引失效的情况详解
随机推荐
Go language core 36 lectures (go language practice and application 23) -- learning notes
完整开源项目之诗词吧 APP
图扑软件智慧风电:数字孪生 3D 风机智能设备运维
ACM. HJ89 24点运算 ●●●
ORB_SLAM3环境搭建及demo演示
To ensure the safety of groups with special difficulties, Guangzhou Civil Affairs made every effort to do a good job in the three prevention work
Fabric. JS manual bold text iText
Thinking (86): master-slave realization idea
Eight models of data analysis: detailed PEST model
【Try to Hack】masscan
Analysis of Alibaba cloud Tianchi competition -- prediction of o2o coupon
图论(树的直径)
Several cases of index invalidation caused by MySQL
为实现“双碳”目标,应如何实现节能、合理的照明管控
【Proteus仿真】T6963C驱动PG12864示例(带中英文显示)
Math. Max() method obtains the maximum value in the array and returns Nan problem analysis
入参参数为Object,但传递过去却成了[object object] 是因为需要转为JSON格式
对不起,你的USB走线可能搞错了!
A cartoon reading app highly imitating Tencent comics
有哪些劵商推荐?在线开户安全么?