且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

上载Laravel 6.0项目后,我得到“此路线不支持GET方法.支持的方法:POST.错误

更新时间:2023-09-05 16:40:28

您的问题是 http://canvas.safedevs.com/重定向到 http s ://canvas.safedevs.com/.发生重定向时,POST会转换为GET,并且帖子数据会丢失.

Your issue is that http://canvas.safedevs.com/ redirects to https://canvas.safedevs.com/. When a redirect occurs, the POST is converted to a GET and the post data lost.

将请求发送到端点的HTTPS版本,它应该可以正常工作.

Send the request to the HTTPS version of the endpoint and it should work fine.

失眠显然具有在重定向后自动禁用的功能,您可能会考虑打开.这样可以使您更好地了解此类问题.

Insomnia apparently has a feature to disable automatically following redirects, which you might consider turning on. It'll give you better visibility on issues like this.