magento - 最近默认 magento 2 的 DELETE 和 PUT API 不起作用,这些是权限问题吗?
问题描述
我通过 Postman 调用 API。API - PUT rest/V1/customers/144 不工作,它在我的本地上成功工作,但在测试环境上不工作,一段时间后我知道所有 PUT 和 DELETE API 都不起作用。
Ii 显示错误 404:未找到。
<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" ><head>
<title>Error 404: Not Found</title>
<base href="http://shoppingtest.eduqfix.com/pub/errors/default/" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="robots" content="*"/><link rel="stylesheet" href="css/styles.css" type="text/css" /><link rel="icon" href="images/favicon.ico" type="image/x-icon" /><link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
</head>
<body>
<main class="page-main">
<h1>404 error: Page not found.</h1>
</main>
</body>
</html>
解决方案
推荐阅读
- javascript - 删除包含特定索引处对象的数组的问题
- .net - 如何尽快获得 Outlook DistributionList 的成员?
- sharepoint - 使用加载项使用用户输入文本修改网站集中的 JS 文件
- android - 软键盘将编辑文本隐藏在其后面
- reactjs - ReactJS:验证不适用于使用 Formik 多步表单的 Yup
- excel - 用户窗体中的图表没有一种方法有效
- gradle - 重构 gradle 任务“类型:复制”中的重复代码
- webpack - 使功能可用于谷歌应用程序脚本,来自 webpack 模块
- powershell - Powershell 脚本未从 Office 365 (MsolService) 获取所需的所有信息
- php - PHP Form 没有将数据发布到数据库