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;
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
add a comment |
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
add a comment |
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
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
magento2 magento2.3
asked Dec 20 '18 at 12:47
sixer1182sixer1182
12
12
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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
Thanks for your response. This was the topic I was referring to in my original post.
– sixer1182
Jan 24 at 13:21
add a comment |
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.
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
Thanks for your response. This was the topic I was referring to in my original post.
– sixer1182
Jan 24 at 13:21
add a comment |
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
Thanks for your response. This was the topic I was referring to in my original post.
– sixer1182
Jan 24 at 13:21
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 24 at 13:30
sixer1182sixer1182
12
12
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered yesterday
snezsnez
2501211
2501211
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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