PUT 请求 403 禁止 [英] PUT request 403 Forbidden
问题描述
使用 Laravel 开发 API.
Developing an API using laravel.
在 PUT 请求中获取 403 Forbidden.
Getting 403 Forbidden on PUT request.
适用于远程服务器,但不适用于本地.对本地服务器使用 MAMP.
Works on a remote server but not locally. Using MAMP for the local server.
这是我的虚拟主机,我没有看到任何异常.
Here is my virtual host, I don't see anything off.
我已经看过关于 SO 的其他类似问题,但还没有解决方案.
I've looked at other similar questions on SO but no solution yet.
推荐答案
在文档根目录的 .htaccess 中添加以下内容:
Added the following to .htaccess at the document root:
这篇关于PUT 请求 403 禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!