javascript-浏览器请求服务器遇到412报错,咋回事?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了javascript-浏览器请求服务器遇到412报错,咋回事?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1554字,纯文字阅读大概需要3分钟。
内容图文
我做一个生成html页面的功能,在浏览器准备好需要生成页面的html代码,以post方式,html代码作为参数传给生成页面功能的php文件,php拿这些html代码进行写文件操作并且返回该文件路径,浏览器收到路径跳转到生成后的页面。我在本地服务器很正常没有报错,在外网服务器却报了412错误,报错内容如下:
412 Error
Your request got filtered out due to possible security issues.
One or more things in your request were suspicious (defective request header, invalid cookies, bad parameters)
If you think you did nothing wrong:
try again with a different browser
avoid any evil characters inside the request url
If you are the owner of the website, you can consider revising the rules of the mod_security module or turning it off from your Web Hosting Control Panel.
回复内容:
我做一个生成html页面的功能,在浏览器准备好需要生成页面的html代码,以post方式,html代码作为参数传给生成页面功能的php文件,php拿这些html代码进行写文件操作并且返回该文件路径,浏览器收到路径跳转到生成后的页面。
我在本地服务器很正常没有报错,在外网服务器却报了412错误,报错内容如下:
412 Error
Your request got filtered out due to possible security issues.
One or more things in your request were suspicious (defective request header, invalid cookies, bad parameters)
If you think you did nothing wrong:
try again with a different browser
avoid any evil characters inside the request url
If you are the owner of the website, you can consider revising the rules of the mod_security module or turning it off from your Web Hosting Control Panel.
mod_security 服务器这个模块,阻止了这次请求,因为可能会有安全漏洞,例如xss。
内容总结
以上是互联网集市为您收集整理的javascript-浏览器请求服务器遇到412报错,咋回事?全部内容,希望文章能够帮你解决javascript-浏览器请求服务器遇到412报错,咋回事?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。