搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Posting request to Server is giving error from Firefox but work perfectly fine in Chrome

more options

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

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)

more options

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>