文章目录
-
-
- [1.1 设置灰色护眼主题](#1.1 设置灰色护眼主题)
- [1.2 Chrome 设置跨域请求](#1.2 Chrome 设置跨域请求)
-
1.1 设置灰色护眼主题
chrome://flags/
搜索 Auto Dark Mode for Web Contents
设置成 Enabled
1.2 Chrome 设置跨域请求
问题:
gin-vue-admin 后台访问不同报:inspector.js:7 Mixed Content: The page at
'https://****.com/index.html#/login'
was loaded over HTTPS, but requested an insecure XMLHttpRequest
endpoint
'http://a4dd36a263d7f498daa9838eb9d1262a-599123674.sa-east-1.elb.amazonaws.com/base/captcha'.
This request has been blocked; the content must be served over HTTPS.
参考:https://zhuanlan.zhihu.com/p/649244003
- 在chrome浏览器地址栏输入:chrome://flags/#unsafely-treat-insecure-origin-as-secure
- 在Insecure origins treated as secure选项,改成Enabled
- 并在文本框输入测试环境地址
- 保存重载