Http响应403禁止在GET请求中的Post Request中就可以了

时间:2019-04-24 11:21:27

标签: rest api cakephp-3.x html-post

我有 公共职能reciveNotification() 并如下所示

$this->Auth->allow([“reciveNotification”]);

当我执行GET请求时,它工作正常,但通过POST请求,我将面临403 Forbiden 我在做什么错了?

GET:
HTTP/1.1 200 OK
Date: Wed, 24 Apr 2019 11:06:43 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 0
Content-Type: text/html; charset=UTF-8

POST:
HTTP/1.1 403 Forbidden
Date: Wed, 24 Apr 2019 11:05:52 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 836
Content-Type: text/html; charset=UTF-8

0 个答案:

没有答案