<small id='1pWsG'></small><noframes id='1pWsG'>

      <tfoot id='1pWsG'></tfoot>

      • <bdo id='1pWsG'></bdo><ul id='1pWsG'></ul>
    1. <legend id='1pWsG'><style id='1pWsG'><dir id='1pWsG'><q id='1pWsG'></q></dir></style></legend>

        <i id='1pWsG'><tr id='1pWsG'><dt id='1pWsG'><q id='1pWsG'><span id='1pWsG'><b id='1pWsG'><form id='1pWsG'><ins id='1pWsG'></ins><ul id='1pWsG'></ul><sub id='1pWsG'></sub></form><legend id='1pWsG'></legend><bdo id='1pWsG'><pre id='1pWsG'><center id='1pWsG'></center></pre></bdo></b><th id='1pWsG'></th></span></q></dt></tr></i><div id='1pWsG'><tfoot id='1pWsG'></tfoot><dl id='1pWsG'><fieldset id='1pWsG'></fieldset></dl></div>

        使用 axios 发出请求时的 MethodNotAllowedHttpException (lumen)

        时间:2023-07-15
      1. <tfoot id='6Ui1l'></tfoot>

          <tbody id='6Ui1l'></tbody>
        <i id='6Ui1l'><tr id='6Ui1l'><dt id='6Ui1l'><q id='6Ui1l'><span id='6Ui1l'><b id='6Ui1l'><form id='6Ui1l'><ins id='6Ui1l'></ins><ul id='6Ui1l'></ul><sub id='6Ui1l'></sub></form><legend id='6Ui1l'></legend><bdo id='6Ui1l'><pre id='6Ui1l'><center id='6Ui1l'></center></pre></bdo></b><th id='6Ui1l'></th></span></q></dt></tr></i><div id='6Ui1l'><tfoot id='6Ui1l'></tfoot><dl id='6Ui1l'><fieldset id='6Ui1l'></fieldset></dl></div>

          1. <legend id='6Ui1l'><style id='6Ui1l'><dir id='6Ui1l'><q id='6Ui1l'></q></dir></style></legend>
              <bdo id='6Ui1l'></bdo><ul id='6Ui1l'></ul>

              <small id='6Ui1l'></small><noframes id='6Ui1l'>

                  本文介绍了使用 axios 发出请求时的 MethodNotAllowedHttpException (lumen)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  创建了一个在 lumen 中插入 todo 的路由,它使用 postman 可以完美地工作,但是在我用 axios 发送的反应应用程序请求中,它收到错误

                  Created a route for inserting todo in lumen , its working perfectly using postman but in my react application request sending with axios , it getting error

                  this.apiUrl = 'http://lumenback.dev/createTodo';
                  
                  axios.post(this.apiUrl, {
                    todo: this.state.todo,
                    todo_date: this.props.curDate
                  })
                  .then(function (response) {
                    console.log(response);
                  }).catch(function (error) {
                    console.log(error);
                  });
                  

                  提前致谢...

                  推荐答案

                  我猜你的应用程序不接受跨域请求.

                  Your application is not accepting the Cross domain requests I guess.

                  这是一个答案 Lumen API CORS Ajax 405不允许的方法我写信来设置 Cors 并使其与 React 和 Lumen 5.5 一起使用.

                  Here is an answer Lumen API CORS Ajax 405 Method Not Allowed I wrote to setup Cors and make it working with React and Lumen 5.5.

                  看看这是否有帮助.

                  我无法评论所以在这里写这个解决方案.

                  I cannot comment so writing this solution here.

                  这篇关于使用 axios 发出请求时的 MethodNotAllowedHttpException (lumen)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:react.js 使用 axios 将数据发布到 php,但 php echo 为空 下一篇:“Adaptive Server 不可用或不存在"从 PHP 连接到 SQL Server 时出错

                  相关文章

                  <tfoot id='EZx6v'></tfoot>

                    • <bdo id='EZx6v'></bdo><ul id='EZx6v'></ul>

                    <legend id='EZx6v'><style id='EZx6v'><dir id='EZx6v'><q id='EZx6v'></q></dir></style></legend>
                    1. <small id='EZx6v'></small><noframes id='EZx6v'>

                      <i id='EZx6v'><tr id='EZx6v'><dt id='EZx6v'><q id='EZx6v'><span id='EZx6v'><b id='EZx6v'><form id='EZx6v'><ins id='EZx6v'></ins><ul id='EZx6v'></ul><sub id='EZx6v'></sub></form><legend id='EZx6v'></legend><bdo id='EZx6v'><pre id='EZx6v'><center id='EZx6v'></center></pre></bdo></b><th id='EZx6v'></th></span></q></dt></tr></i><div id='EZx6v'><tfoot id='EZx6v'></tfoot><dl id='EZx6v'><fieldset id='EZx6v'></fieldset></dl></div>