简体   繁体   English

无法访问 api 路径 localhost:1337/auth/local 总是返回在 strappi 中找不到

[英]unable to access the api path localhost:1337/auth/local always return not found in strappi

I installed a fresh strapi project and trying to authenticate api using jwt token.but the auth/local api always return not found我安装了一个新的 Strapi 项目并尝试使用 jwt 令牌验证 api。但是 auth/local api 总是返回 not found

/auth/local will only respond to a POST request. /auth/local只会响应POST请求。

Any other HTTP Request (GET, DELETE, UPDATE etc) will be sent a 404 status (Not found).任何其他 HTTP 请求(GET、DELETE、UPDATE 等)都将发送 404 状态(未找到)。

Make sure you are sending a HTTP POST request.确保您发送的是 HTTP POST 请求。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 FetchError:请求 http://localhost:1337/api/products 失败,原因:连接 ECONNREFUSED 127.0.0.1:1337 - FetchError: request to http://localhost:1337/api/products failed, reason: connect ECONNREFUSED 127.0.0.1:1337 无法使用 next-auth 访问会话 - unable to access session using next-auth 使用 Next-auth 时从 API 返回错误信息 - Return error information from API when using Next-auth 自定义登录表单错误:使用 CredentialsProvider 重定向到 https://localhost:3000/api/auth/signin?csrf=true - Custom Login Form Error : Redirecting to https://localhost:3000/api/auth/signin?csrf=true using CredentialsProvider 请求/获取访问 API 的访问令牌 (Auth0) - Request/obtain Access Token for accessing API (Auth0) API 路由中的 NextAuth:unstable_getServerSession 和 getToken 总是返回 null - NextAuth in API routes: unstable_getServerSession and getToken always return null Vercel 上的 Nextjs 部署 - api 请求返回 500,适用于 localhost - Nextjs deployment on Vercel - api requests return 500, works on localhost 无法访问本地网络上的 ReactJs/Nextjs 应用程序 | 连接已超时 | Reactjs 本地网络上的应用程序 - Unable to access ReactJs/Nextjs app on local network | The Connection has timed out | Reactjs App on local network 如何在额外的 API 服务 Auth0 中获取访问令牌? - How to get access token in additional API Service Auth0? 未找到模块:Package 路径。/客户端未从 package 中导出 Next auth 错误 - Module not found: Package path ./client is not exported from package error in Next auth
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM