在网关配置了 允许跨域之后,前端页面依然无法显示内容
一开始以为是配置错了,跨域出了问题,经过多番尝试依然无法解决,后求助好友发现并非跨域的问题,而是浏览器的问题
出错原因:浏览器安全更新
解决办法:修改浏览器设置
可以设置 chrome 浏览器 chrome://flags/#block-insecure-private-network-requests 值为 disabled,
再刷新页面,问题就解决了!
在网关配置了 允许跨域之后,前端页面依然无法显示内容
一开始以为是配置错了,跨域出了问题,经过多番尝试依然无法解决,后求助好友发现并非跨域的问题,而是浏览器的问题
出错原因:浏览器安全更新
解决办法:修改浏览器设置
可以设置 chrome 浏览器 chrome://flags/#block-insecure-private-network-requests 值为 disabled,
再刷新页面,问题就解决了!