每当我要登录或注册 strapi 405(方法不允许)消息出现
Whenever I'm going to login or register with strapi 405(method not allowed) message come up
每当我向 strapi 发送登录和注册请求时,我都会收到类似 405enter image description here
的错误
因为您的API路线可能有误。
就我而言,它与 http://localhost:1337/api/auth/local
一起工作正常
此外,您可以在 strapi 管理面板
中使用以下路径检查 API 路由
设置 -> 用户和权限插件 -> 角色 -> Select 已验证或 Public -> 权限
每当我向 strapi 发送登录和注册请求时,我都会收到类似 405enter image description here
的错误因为您的API路线可能有误。 就我而言,它与 http://localhost:1337/api/auth/local
一起工作正常此外,您可以在 strapi 管理面板
中使用以下路径检查 API 路由设置 -> 用户和权限插件 -> 角色 -> Select 已验证或 Public -> 权限