http升级https的时候,遇到一个问题
2024-09-26 12:43:56
问题:
Mixed Content: The page at 'https://api.xxxx.com/test' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://api.xxxx.com/test'. This request has been blocked; the content must be served over HTTPS.
添加这个:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
参考:
http://thehackernews.com/2015/04/disable-mixed-content-warning.html
最新文章
- JavaScript中fn()和return fn()
- JavaEE 概念
- 关于最近的CSRF攻击
- 疯狂位图之——位图实现12GB无重复大整数集排序
- FooTable高级的响应式表格jQuery插件
- C#如何读写和创建INI文件
- HTML5读取本地文件 FileReader API接口
- FPGA静态时序分析——IO口时序(Input Delay /output Delay)
- php 7 正式发版
- mysql_windows_安装版添加到服务开机自启动
- 30个HTML初学者建议
- <;poj - 3268>; Silver Cow Party 牛のpart 最短路径问题
- Windows Server 2016-WinSer2016 Active Directory新增功能
- Java四大名著下载大全(中文+英文)
- C#:匿名类型
- MIT-6.828-JOS-lab5:File system, Spawn and Shell
- 【中文分词】DAG、DP、HMM、Viterbi
- 前端通信:ajax设计方案(二)---集成轮询技术
- Gunner II--hdu5233(map&;vector/二分)
- session 与 cookie 区别