為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Javascript form submit / redirection not working after update to Firefox 56

more options

Hello, in a web site login form, that has been working on firefox and stills does work in Explorer and Chrome.

After updating to Firefox 56 , the form does not work anymore. It is on a HTTP site, the form submit is done by javascript by submitting the form from it.

Inspecting the network request, the web form (created by JS) sits at: "http://ip_address/" The action value of the form has a value like: "http://ip_address/login/indice/test" But submitting the form shows in the developer mode that the values sent (correct parameter names and correct values) , get send to "http://ip_address/" instead of "http://ip_address/login/indice/test"

If i log directly to "http://ip_address/login/indice/test" in Firefox and get the login page, and try to log in from there (having shown in the URL of the browser the ending "/login/indice/test"), the login does work.

This is not necessary in any other browser and in firefox 55 and below, when accessing to "http://ip_address/", and submitting the form, values get submitted to "http://ip_address/login/indice/test" and log in or have error message correctly shown.

So not sure if it is a problem with of javascript, or a problem following a redirect command from the server, or having the form submit to a different method from JS, any help is appreciated

Hello, in a web site login form, that has been working on firefox and stills does work in Explorer and Chrome. After updating to Firefox 56 , the form does not work anymore. It is on a HTTP site, the form submit is done by javascript by submitting the form from it. Inspecting the network request, the web form (created by JS) sits at: "http://ip_address/" The action value of the form has a value like: "http://ip_address/login/indice/test" But submitting the form shows in the developer mode that the values sent (correct parameter names and correct values) , get send to "http://ip_address/" instead of "http://ip_address/login/indice/test" If i log directly to "http://ip_address/login/indice/test" in Firefox and get the login page, and try to log in from there (having shown in the URL of the browser the ending "/login/indice/test"), the login does work. This is not necessary in any other browser and in firefox 55 and below, when accessing to "http://ip_address/", and submitting the form, values get submitted to "http://ip_address/login/indice/test" and log in or have error message correctly shown. So not sure if it is a problem with of javascript, or a problem following a redirect command from the server, or having the form submit to a different method from JS, any help is appreciated

被選擇的解決方法

This has been fixed, apparently the JS framework wrapper that sets the action method was being ignored in firefox 56.

Accessing the dom form element directly (no the JS framework element), and setting the action value to the URL wanted, before submitting the form using JS, solved the issue.

從原來的回覆中察看解決方案 👍 3

所有回覆 (4)

more options

選擇的解決方法

This has been fixed, apparently the JS framework wrapper that sets the action method was being ignored in firefox 56.

Accessing the dom form element directly (no the JS framework element), and setting the action value to the URL wanted, before submitting the form using JS, solved the issue.

more options

I upgraded to Firefox 56.0.1 for MacOS (10.12.3) this morning and now cannot log in to Qantas (the Australian flag carrier airline) because the login box does not appear in Firefox nor do any text links work (ie the pointer doesn't change to a hand and you can't click on it.) No problem with Safari. Based on above and viewing the website with "Inspector" I guess that <script defer="" src="https://cdn.services.qantasloyalty.com/assets/widgets/login/v2/login.bundle.js"></script> is the problem but I have no clue as to how to sort this out. The URL is https://www.qantas.com/au/en.html I have also recently had to switch my default browser to Safari because even in the previous Firefox, the Financial Times website wasn't working properly

more options

I am also getting redirection issue in Firefox, on certain OS same browser is working properly on others it is not. Are there any logs I can share?

more options

hgulati This thread is about an older version of Firefox which is no longer supported. Please start your own questions thread. https://support.mozilla.org/en-US/products/firefox