补丁请求403禁止 [英] PATCH request 403 Forbidden

查看:77
本文介绍了补丁请求403禁止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近尝试安装名为EspoCRM的开源软件包 它使用 PATCH 请求来编辑记录.但是我似乎无法使其正常工作.

I've recently tried installing a OpenSource Package called EspoCRM It uses PATCH requests to edit records. Yet I can't seem to get it working propperly.

我已将其安装在具有PHP 5.4.31的Linux Apache服务器上.我尝试将所有CHMOD设置为777,但这并没有帮助.

I've installed it on a Linux Apache server with PHP 5.4.31. I tried to set all CHMOD to 777 as a test but that didn't help it.

我已经联系创作者我做错了什么.他认为我的服务器可能正在阻止PATCH请求.因此,我将其安装在Destkop的XAMPP测试中,效果很好. 但是我找不到拒绝或允许PATCH请求的任何方式.

I've contacted the creator what I'm doing wrong. He thinks my server might be blocking PATCH requests. So I installed it on a XAMPP test on my Destkop and that worked fine. Yet I can't find any way to deny or allow PATCH requests.

有人知道如何解决此问题吗?

Does anyone know how to fix this?

如果我抓取请求URL并只是在新选项卡中打开URL,它将正确打开.它只是不处理请求

If I grab the request URL and just open the URL in a new tab it opens correctly. It just doens't handle the request

推荐答案

虚拟主机需要权限才能处理PATCH之类的方法.

The vhost needs permission to handle methods like PATCH.

在vhost配置的目录部分中添加如下所示的LIMIT规则:

Add the LIMIT rules like below in your directory section in the vhost config:

  <Limit GET POST PUT DELETE HEAD OPTIONS PATCH>
      Order allow,deny
      Allow from all
  </Limit>

这篇关于补丁请求403禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆