Posting request to Server is giving error from Firefox but work perfectly fine in Chrome
Hi,
I am positing a request to my server and I am getting following message with popup having cancel and resend button -
To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier.
When I click on resend button, Firefox display application page to re-submit the request. Again it display popup message with cancel and resend button. This continues for ever
The above mentioned behavior is not seen in chrome browser and it work perfectly fine in chrome. Firefox version is 94.0.2 (64-bit).
Thanks in advance for help.
Regards, Samir
การตอบกลับทั้งหมด (1)
Hi Samir, this occurs if a page generated by a POST request is reloaded.
What is the last action before this message occurs?
Here's one common issue: if you are using this pattern --
<a href="#" onclick="doSomething();">Click me</a>
-- you need to cancel navigation in your script to prevent Firefox from following the link. This is customary, assuming it still works:
<a href="#" onclick="doSomething(); return false;">Click me</a>