douxiajia6309 2014-02-25 18:53
浏览 312
已采纳

服务器在ajax提交上给出403错误

I am working on a new project like jsfiddle. I am facing a problem while development of it. When I try to send a ajax request with JS alert() function in text box the server is giving a 403 error. Can anyone help me with this?

Example: Go to this URL: http://www.labs.codeteam.in/lab

Enter alert(1) in javascript textbox and Run the project, the server will give a 403 error in console.

  • 写回答

5条回答 默认 最新

  • duanjiao5082 2014-02-25 19:04
    关注

    A web server may return a 403 Forbidden HTTP status code in response to a request from a client for a web page or resource to indicate that the server can be reached and understood the request, but refuses to take any further action. Status code 403 responses are the result of the web server being configured to deny access, for some reason, to the requested resource by the client.

    The server might be configure to prevent script injection. Sending "alert()" with your post to the server might look like some type of injection attempt to the server.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题