Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint - Is there a backwards compatible solution? The 2019 Stack Overflow Developer Survey Results Are InMagento 2.3 upgrade breaks HTTP POST requests to custom module endpointMagento 2: making a module using UI component compatible both 2.0 and 2.1?Magento 2.2.2 Upgrade failed due to Dotmailer severe issues API endpointMagento 2.3 upgrade breaks HTTP POST requests to custom module endpointMagento 2.3: How to solve the message “Unable to send email”?Magento 2.3: Add Attachment with email (Magento 2.3 use zendframework 2)How to create AJAX action for POST requests in Magento 2.3?Magento 2.3 setup:upgrade error sqlHow to Access Magento2.3 Instance with PWAHow to bypass CSRF validation for certain requests like payment gateway webhook?Magento 2.3 upgrade compilation error

Worn-tile Scrabble

Does adding complexity mean a more secure cipher?

How do I free up internal storage if I don't have any apps downloaded?

Is Cinnamon a desktop environment or a window manager? (Or both?)

Output the Arecibo Message

For what reasons would an animal species NOT cross a *horizontal* land bridge?

If climate change impact can be observed in nature, has that had any effect on rural, i.e. farming community, perception of the scientific consensus?

Deal with toxic manager when you can't quit

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Mathematics of imaging the black hole

ELI5: Why they say that Israel would have been the fourth country to land a spacecraft on the Moon and why they call it low cost?

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

How do PCB vias affect signal quality?

What is this sharp, curved notch on my knife for?

Are spiders unable to hurt humans, especially very small spiders?

Can there be female White Walkers?

A female thief is not sold to make restitution -- so what happens instead?

Can you cast a spell on someone in the Ethereal Plane, if you are on the Material Plane and have the True Seeing spell active?

Finding the area between two curves with Integrate

Can withdrawing asylum be illegal?

Why couldn't they take pictures of a closer black hole?

Is it safe to harvest rainwater that fell on solar panels?



Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint - Is there a backwards compatible solution?



The 2019 Stack Overflow Developer Survey Results Are InMagento 2.3 upgrade breaks HTTP POST requests to custom module endpointMagento 2: making a module using UI component compatible both 2.0 and 2.1?Magento 2.2.2 Upgrade failed due to Dotmailer severe issues API endpointMagento 2.3 upgrade breaks HTTP POST requests to custom module endpointMagento 2.3: How to solve the message “Unable to send email”?Magento 2.3: Add Attachment with email (Magento 2.3 use zendframework 2)How to create AJAX action for POST requests in Magento 2.3?Magento 2.3 setup:upgrade error sqlHow to Access Magento2.3 Instance with PWAHow to bypass CSRF validation for certain requests like payment gateway webhook?Magento 2.3 upgrade compilation error



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-1















this topic shows a solution for the broken POST requests due to Magento 2.3 upgrade. However the solution is breaking the compatibility of my module with Magento <2.3 shops.



Can anyone think of a workaround to support older versions as well?










share|improve this question




























    -1















    this topic shows a solution for the broken POST requests due to Magento 2.3 upgrade. However the solution is breaking the compatibility of my module with Magento <2.3 shops.



    Can anyone think of a workaround to support older versions as well?










    share|improve this question
























      -1












      -1








      -1








      this topic shows a solution for the broken POST requests due to Magento 2.3 upgrade. However the solution is breaking the compatibility of my module with Magento <2.3 shops.



      Can anyone think of a workaround to support older versions as well?










      share|improve this question














      this topic shows a solution for the broken POST requests due to Magento 2.3 upgrade. However the solution is breaking the compatibility of my module with Magento <2.3 shops.



      Can anyone think of a workaround to support older versions as well?







      magento2 magento2.3






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 20 '18 at 12:47









      sixer1182sixer1182

      12




      12




















          3 Answers
          3






          active

          oldest

          votes


















          0














          This solves the problem, but after that your module will not work on Magento 2.2 and earlier.
          https://magento.stackexchange.com/a/255082/75860






          share|improve this answer























          • Thanks for your response. This was the topic I was referring to in my original post.

            – sixer1182
            Jan 24 at 13:21


















          0














          After a quite a bit of research I did not find a solution not breaking the backwards compatibility. I settled with a fork of the original module which I patched as described here.



          There is a way to make the fix compatible with Magento 2.2 by getting rid of the '?' in method overrides. However there is no way to make it compatible with Magento 2.0 or 2.1 since the required PHP Versions do not support the method headers you have to match in order to implement the CsrfAwareActionInterface.



          The only solution might be something not requiring to implement the CsrfAwareActionInterface at all.






          share|improve this answer






























            0














            I have updated the original answer to Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint to include a backwards compatible solution.






            share|improve this answer























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "479"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f255357%2fmagento-2-3-upgrade-breaks-http-post-requests-to-custom-module-endpoint-is-the%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              This solves the problem, but after that your module will not work on Magento 2.2 and earlier.
              https://magento.stackexchange.com/a/255082/75860






              share|improve this answer























              • Thanks for your response. This was the topic I was referring to in my original post.

                – sixer1182
                Jan 24 at 13:21















              0














              This solves the problem, but after that your module will not work on Magento 2.2 and earlier.
              https://magento.stackexchange.com/a/255082/75860






              share|improve this answer























              • Thanks for your response. This was the topic I was referring to in my original post.

                – sixer1182
                Jan 24 at 13:21













              0












              0








              0







              This solves the problem, but after that your module will not work on Magento 2.2 and earlier.
              https://magento.stackexchange.com/a/255082/75860






              share|improve this answer













              This solves the problem, but after that your module will not work on Magento 2.2 and earlier.
              https://magento.stackexchange.com/a/255082/75860







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jan 17 at 6:23









              RubyRuby

              312




              312












              • Thanks for your response. This was the topic I was referring to in my original post.

                – sixer1182
                Jan 24 at 13:21

















              • Thanks for your response. This was the topic I was referring to in my original post.

                – sixer1182
                Jan 24 at 13:21
















              Thanks for your response. This was the topic I was referring to in my original post.

              – sixer1182
              Jan 24 at 13:21





              Thanks for your response. This was the topic I was referring to in my original post.

              – sixer1182
              Jan 24 at 13:21













              0














              After a quite a bit of research I did not find a solution not breaking the backwards compatibility. I settled with a fork of the original module which I patched as described here.



              There is a way to make the fix compatible with Magento 2.2 by getting rid of the '?' in method overrides. However there is no way to make it compatible with Magento 2.0 or 2.1 since the required PHP Versions do not support the method headers you have to match in order to implement the CsrfAwareActionInterface.



              The only solution might be something not requiring to implement the CsrfAwareActionInterface at all.






              share|improve this answer



























                0














                After a quite a bit of research I did not find a solution not breaking the backwards compatibility. I settled with a fork of the original module which I patched as described here.



                There is a way to make the fix compatible with Magento 2.2 by getting rid of the '?' in method overrides. However there is no way to make it compatible with Magento 2.0 or 2.1 since the required PHP Versions do not support the method headers you have to match in order to implement the CsrfAwareActionInterface.



                The only solution might be something not requiring to implement the CsrfAwareActionInterface at all.






                share|improve this answer

























                  0












                  0








                  0







                  After a quite a bit of research I did not find a solution not breaking the backwards compatibility. I settled with a fork of the original module which I patched as described here.



                  There is a way to make the fix compatible with Magento 2.2 by getting rid of the '?' in method overrides. However there is no way to make it compatible with Magento 2.0 or 2.1 since the required PHP Versions do not support the method headers you have to match in order to implement the CsrfAwareActionInterface.



                  The only solution might be something not requiring to implement the CsrfAwareActionInterface at all.






                  share|improve this answer













                  After a quite a bit of research I did not find a solution not breaking the backwards compatibility. I settled with a fork of the original module which I patched as described here.



                  There is a way to make the fix compatible with Magento 2.2 by getting rid of the '?' in method overrides. However there is no way to make it compatible with Magento 2.0 or 2.1 since the required PHP Versions do not support the method headers you have to match in order to implement the CsrfAwareActionInterface.



                  The only solution might be something not requiring to implement the CsrfAwareActionInterface at all.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 24 at 13:30









                  sixer1182sixer1182

                  12




                  12





















                      0














                      I have updated the original answer to Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint to include a backwards compatible solution.






                      share|improve this answer



























                        0














                        I have updated the original answer to Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint to include a backwards compatible solution.






                        share|improve this answer

























                          0












                          0








                          0







                          I have updated the original answer to Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint to include a backwards compatible solution.






                          share|improve this answer













                          I have updated the original answer to Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint to include a backwards compatible solution.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered yesterday









                          snezsnez

                          2501211




                          2501211



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Magento Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f255357%2fmagento-2-3-upgrade-breaks-http-post-requests-to-custom-module-endpoint-is-the%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                              Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                              Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form