首页 > 解决方案 > 最近默认 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>

标签: magentomagento2.2magento2.1

解决方案


推荐阅读