浏览器Cors跨域访问报错(解决)

火狐浏览器设置步骤:

  1. 进入火狐配置页进行设置 ,地址栏输入"about:config"
  2. 点击”我了解此风险”后进入页面
  3. 搜索”security.fileuri.strict_origin_policy”,并设置该项为false
  4. 重启浏览器,可以跨域访问

猜你喜欢

转载自blog.csdn.net/isfor_you/article/details/115023857